Files
nixpkgs/pkgs/by-name/ca/cargo-crev/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

63 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
perl,
pkg-config,
curl,
libiconv,
openssl,
gitMinimal,
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-crev";
version = "0.26.5";
src = fetchFromGitHub {
owner = "crev-dev";
repo = "cargo-crev";
rev = "v${version}";
sha256 = "sha256-P6i2RvosI36rrg52kUcdrb5y4Fg0ms/mH5hcOWNgSik=";
};
cargoHash = "sha256-ZlcKnSVpMxQqstbr/VkR/iT1B0wR5qnh5VLpNpYsTRw=";
preCheck = ''
export HOME=$(mktemp -d)
git config --global user.name "Nixpkgs Test"
git config --global user.email "nobody@example.com"
'';
nativeBuildInputs = [
perl
pkg-config
];
buildInputs = [
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
curl
];
nativeCheckInputs = [ gitMinimal ];
meta = with lib; {
description = "Cryptographically verifiable code review system for the cargo (Rust) package manager";
mainProgram = "cargo-crev";
homepage = "https://github.com/crev-dev/cargo-crev";
license = with licenses; [
asl20
mit
mpl20
];
maintainers = with maintainers; [
b4dm4n
matthiasbeyer
];
};
}