-
-
Notifications
You must be signed in to change notification settings - Fork 16.6k
snow-plow: init at 0.1.0 #368273
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
base: master
Are you sure you want to change the base?
snow-plow: init at 0.1.0 #368273
Conversation
4b10e87
to
836ef44
Compare
@NixOS/nix-formatting nixfmt-check fails, yet I have run |
There's no need to manually get the right nixfmt version, the CI failure mentions:
|
836ef44
to
41ba76c
Compare
I thought I did that, but apparently doing it again did something. And it works! Thanks. |
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.
Thanks! Otherwise LGTM
src = fetchFromGitHub { | ||
owner = "JeanCASPAR"; | ||
repo = pname; | ||
rev = "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 = "v${version}"; | |
tag = "v${version}"; |
|
||
nativeBuildInputs = [ installShellFiles ]; | ||
|
||
postInstall = '' |
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.
postInstall = '' | |
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' |
See #368256
mkdir $out/artifacts | ||
pushd $out/artifacts | ||
|
||
$out/bin/snow-plow gen-man | ||
for shell in bash fish zsh; do | ||
$out/bin/snow-plow gen-completion $shell | ||
done | ||
popd | ||
|
||
installManPage $out/artifacts/*.1 | ||
installShellCompletion \ | ||
--cmd snow-plow \ | ||
--bash $out/artifacts/snow-plow.bash \ | ||
--fish $out/artifacts/snow-plow.fish \ | ||
--zsh $out/artifacts/_snow-plow | ||
|
||
rm -r $out/artifacts |
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.
mkdir $out/artifacts | |
pushd $out/artifacts | |
$out/bin/snow-plow gen-man | |
for shell in bash fish zsh; do | |
$out/bin/snow-plow gen-completion $shell | |
done | |
popd | |
installManPage $out/artifacts/*.1 | |
installShellCompletion \ | |
--cmd snow-plow \ | |
--bash $out/artifacts/snow-plow.bash \ | |
--fish $out/artifacts/snow-plow.fish \ | |
--zsh $out/artifacts/_snow-plow | |
rm -r $out/artifacts | |
pushd $(mktemp -d) | |
$out/bin/snow-plow gen-man | |
for shell in bash fish zsh; do | |
$out/bin/snow-plow gen-completion $shell | |
done | |
installManPage *.1 | |
installShellCompletion \ | |
--cmd snow-plow \ | |
--bash snow-plow.bash \ | |
--fish snow-plow.fish \ | |
--zsh _snow-plow | |
popd |
''; | ||
|
||
cargoHash = "sha256-y8o3rn6+0Q/mDfi31sPYGynp4kMF5yFAWYp6vQgQEJc="; | ||
|
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.
doInstallCheck = true; | |
nativeInstallCheckInputs = [ versionCheckHook ]; | |
versionCheckProgramArg = [ "--version" ]; | |
Just a suggestion: we can add versionCheckHook
for a simple check.
Added new package snow-plow, a utility package to update several flakes at once.
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.