Skip to content

Commit 991fbf2

Browse files
committed
nixci: 0.5.0 -> 1.0.0
1 parent 3c35794 commit 991fbf2

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

pkgs/tools/nix/nixci/default.nix

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,23 @@
88
, Security
99
, SystemConfiguration
1010
, IOKit
11+
, installShellFiles
12+
, nix
1113
}:
1214

1315
rustPlatform.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 {

0 commit comments

Comments
 (0)