-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sss_code: init at 0.2.0 #302495
base: master
Are you sure you want to change the base?
sss_code: init at 0.2.0 #302495
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Please move to
pkgs/by-name
. Other directories needs top-level reference or package sets reference. - Looks like you are contributing for the first time. Please add your name to
maintainers-maintainer-list.nix
following its examples. - It's recommended to leave some blank lines between attributes to improve readability. You can refer to how other packages do it.
Hello @Aleksanaa :)
Please review these changes, and let me know if there's anything else I need to address. Thanks you |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash all your commits leaving only two:
- maintainers: add krovuxdev
- sss: init at 0.1.8
babd5c0
to
b003a4d
Compare
Hi @Aleksanaa, could you please review the code to see if it's okay now? |
Please squash all your commits leaving only two:
|
@Aleksanaa Hello, thank you for bringing it to my attention. Could you please review my commits to see if they are okay? |
The maintainer addition commit message is specified in https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#commit-conventions. |
Ok, thank you, and now please, review my commits to see if they are correct |
@ofborg eval |
pkgs/by-name/ss/sss/package.nix
Outdated
src = fetchFromGitHub { | ||
owner = "SergioRibera"; | ||
repo = "sss"; | ||
rev = "sss_code/v{version}"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rev = "sss_code/v{version}"; | |
rev = "sss_code/v${version}"; |
Also your |
@Aleksanaa, yes, that's why I'm using "main" instead of "sss_code/v0.1.8". As you mentioned, the "sss_code/v0.1.8" is quite old. Additionally, a friend advised me to use "main" because it represents the latest version. Remember, you advised me to change the rev to "sss_code" in package.nix. |
Yes, but |
@Aleksanaa, if I set the version as "sss-unstable-2024-03-29" or "unstable-2024-03-30", is that sufficient? |
No. It doesn't fit the versioning guidelines in https://github.com/NixOS/nixpkgs/tree/master/pkgs#package-naming. And although there is currently no policy whether to uses the |
I've updated the version of |
pkgs/by-name/ss/sss_code/package.nix
Outdated
}; | ||
|
||
postInstall = '' | ||
rm -f $out/bin/sss_cli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment here why deleting this.
Wait! xd |
Done! |
@ofborg eval |
@ofborg build |
@ofborg build sss_code |
@ofborg build sss_code |
@Aleksanaa And why this error of tauri? |
ahhh now I see, there is a tauri in cargo.lock. ok |
pkgs/by-name/ss/sss_code/package.nix
Outdated
buildInputs = [ fontconfig freetype libxcb ]; | ||
|
||
meta = with lib; { | ||
description = "A CLI/Lib to take amazing screenshot of code"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the recommendations for meta attributes description should not start with an article and avoid subjective language, hence I propose to use the following shortened description from the projects readme:
description = "A CLI/Lib to take amazing screenshot of code"; | |
description = "Libraries and tools for building screenshots in a high-performance image format"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@afh it's ready. Thank you, I changed the description and also made changes to the code because the package was updated.
Description of changes
sss is a command tools for screenshots and code snippets.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.