1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

Merge pull request #329645 from rsrohitsingh682/update-nixci

nixci: 0.5.0 -> 1.0.0
This commit is contained in:
lassulus 2024-07-25 18:18:40 +02:00 committed by GitHub
commit c3e1bcb2d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 5 deletions

View file

@ -17617,6 +17617,12 @@
githubId = 19433256;
name = "Radoslaw Sniezek";
};
rsrohitsingh682 = {
email = "rsrohitsingh682@gmail.com";
github = "rsrohitsingh682";
githubId = 45477585;
name = "Rohit Singh";
};
rster2002 = {
name = "Bjørn";
github = "rster2002";

View file

@ -8,21 +8,23 @@
, Security
, SystemConfiguration
, IOKit
, installShellFiles
, nix
}:
rustPlatform.buildRustPackage rec {
pname = "nixci";
version = "0.5.0";
version = "1.0.0";
src = fetchCrate {
inherit version;
pname = "nixci";
hash = "sha256-XbPXS29zqg+pOs/JRRB2bRPdMTDy/oKLM41UomSZTN0=";
hash = "sha256-49I09hXYoVo6vzv1b6mkeiFwzfj6g1SkXTL/tCEdOYc=";
};
cargoHash = "sha256-+ed/XsEAwp7bsZOb+bOailpgSFnKvwoHR0QptnGeulk=";
cargoHash = "sha256-trmWeYJNev7jYJtGp9XR/emmQiiI94NM0cPFrAuD7m0=";
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config installShellFiles nix ];
buildInputs = lib.optionals stdenv.isLinux [
openssl
@ -32,6 +34,13 @@ rustPlatform.buildRustPackage rec {
SystemConfiguration
];
postInstall = ''
installShellCompletion --cmd nixci \
--bash <($out/bin/nixci completion bash) \
--fish <($out/bin/nixci completion fish) \
--zsh <($out/bin/nixci completion zsh)
'';
# The rust program expects an environment (at build time) that points to the
# devour-flake flake.
env.DEVOUR_FLAKE = fetchFromGitHub {
@ -45,7 +54,7 @@ rustPlatform.buildRustPackage rec {
description = "Define and build CI for Nix projects anywhere";
homepage = "https://github.com/srid/nixci";
license = licenses.agpl3Only;
maintainers = with maintainers; [ srid shivaraj-bh ];
maintainers = with maintainers; [ srid shivaraj-bh rsrohitsingh682 ];
mainProgram = "nixci";
};
}