Skip to content

Commit c3e1bcb

Browse files
authored
Merge pull request #329645 from rsrohitsingh682/update-nixci
nixci: 0.5.0 -> 1.0.0
2 parents a2146bb + 103bd1c commit c3e1bcb

File tree

2 files changed

+20
-5
lines changed

2 files changed

+20
-5
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17617,6 +17617,12 @@
1761717617
githubId = 19433256;
1761817618
name = "Radoslaw Sniezek";
1761917619
};
17620+
rsrohitsingh682 = {
17621+
email = "[email protected]";
17622+
github = "rsrohitsingh682";
17623+
githubId = 45477585;
17624+
name = "Rohit Singh";
17625+
};
1762017626
rster2002 = {
1762117627
name = "Bjørn";
1762217628
github = "rster2002";

pkgs/tools/nix/nixci/default.nix

Lines changed: 14 additions & 5 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 {
@@ -45,7 +54,7 @@ rustPlatform.buildRustPackage rec {
4554
description = "Define and build CI for Nix projects anywhere";
4655
homepage = "https://github.com/srid/nixci";
4756
license = licenses.agpl3Only;
48-
maintainers = with maintainers; [ srid shivaraj-bh ];
57+
maintainers = with maintainers; [ srid shivaraj-bh rsrohitsingh682 ];
4958
mainProgram = "nixci";
5059
};
5160
}

0 commit comments

Comments
 (0)