-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
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}"; |
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.
77154bd
to
55db8ed
Compare
Hey @Aleksanaa @afh What do you think about this PR? Ready to merge, or does it need more tweaks? |
pkgs/by-name/ss/sss_code/package.nix
Outdated
cargoLock = { | ||
lockFile = ./Cargo.lock; | ||
outputHashes = { | ||
"mouse_position-0.1.3" = "sha256-aYgWaozAECw+RzD2cOT7OxYzKJd2MlLsXkqW27BjSwI="; | ||
}; | ||
}; |
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.
cargoLock = { | |
lockFile = ./Cargo.lock; | |
outputHashes = { | |
"mouse_position-0.1.3" = "sha256-aYgWaozAECw+RzD2cOT7OxYzKJd2MlLsXkqW27BjSwI="; | |
}; | |
}; | |
useFetchCargoVendor = true; | |
cargoHash = ""; |
Then we do not need to copy Cargo.lock here
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.
@FliegendeWurst Thank you for the suggestion, I really appreciate your help! :D
pkgs/by-name/ss/sss_code/package.nix
Outdated
# Removed 'sss' command due to version differences and to separate commands. | ||
postInstall = '' | ||
rm -f $out/bin/sss | ||
''; |
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.
# Removed 'sss' command due to version differences and to separate commands. | |
postInstall = '' | |
rm -f $out/bin/sss | |
''; | |
cargoBuildFlags = [ "-p" "sss_code" ]; |
Should have the same effect, and even saves some compile time.
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.
I didn’t know about this, and it’s really helpful. I’ll make the change. Appreciate it!
fontconfig | ||
libxcb | ||
]; | ||
|
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.
doCheck = false; # no tests | |
The tests take quite some time to compile otherwise.
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.
@FliegendeWurst Okay, I'll change it.
sss_code: init at 0.2.0 sss_code: init at 0.2.0 sss_code: init at 0.2.0
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.