File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 88, Security
99, SystemConfiguration
1010, IOKit
11+ , installShellFiles
12+ , nix
1113} :
1214
1315rustPlatform . buildRustPackage rec {
1416 pname = "nixci" ;
15- version = "0.5 .0" ;
17+ version = "1.0 .0" ;
1618
1719 src = fetchCrate {
1820 inherit version ;
1921 pname = "nixci" ;
20- hash = "sha256-XbPXS29zqg+pOs/JRRB2bRPdMTDy/oKLM41UomSZTN0 =" ;
22+ hash = "sha256-49I09hXYoVo6vzv1b6mkeiFwzfj6g1SkXTL/tCEdOYc =" ;
2123 } ;
2224
23- cargoHash = "sha256-+ed/XsEAwp7bsZOb+bOailpgSFnKvwoHR0QptnGeulk =" ;
25+ cargoHash = "sha256-trmWeYJNev7jYJtGp9XR/emmQiiI94NM0cPFrAuD7m0 =" ;
2426
25- nativeBuildInputs = [ pkg-config ] ;
27+ nativeBuildInputs = [ pkg-config installShellFiles nix ] ;
2628
2729 buildInputs = lib . optionals stdenv . isLinux [
2830 openssl
@@ -32,6 +34,13 @@ rustPlatform.buildRustPackage rec {
3234 SystemConfiguration
3335 ] ;
3436
37+ postInstall = ''
38+ installShellCompletion --cmd nixci \
39+ --bash <($out/bin/nixci completion bash) \
40+ --fish <($out/bin/nixci completion fish) \
41+ --zsh <($out/bin/nixci completion zsh)
42+ '' ;
43+
3544 # The rust program expects an environment (at build time) that points to the
3645 # devour-flake flake.
3746 env . DEVOUR_FLAKE = fetchFromGitHub {
You can’t perform that action at this time.
0 commit comments