nixpkgs/pkgs/development/tools/rust/cargo-crev/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv
2020-08-17 10:14:04 +01:00
, fetchFromGitHub
, rustPlatform
, perl
, pkg-config
, SystemConfiguration
2020-08-17 10:14:04 +01:00
, Security
2022-08-13 04:55:13 +01:00
, CoreFoundation
2020-08-17 10:14:04 +01:00
, curl
, libiconv
, openssl
, git
2020-08-17 10:14:04 +01:00
}:
2019-11-24 12:34:36 +00:00
rustPlatform.buildRustPackage rec {
pname = "cargo-crev";
2023-09-19 06:48:39 +01:00
version = "0.25.0";
2019-11-24 12:34:36 +00:00
src = fetchFromGitHub {
owner = "crev-dev";
repo = "cargo-crev";
2021-11-18 16:18:57 +00:00
rev = "v${version}";
2023-09-19 06:48:39 +01:00
sha256 = "sha256-Lt8ubK96ntcQJEnQ37nF8N4gJ8nmphwkbM6KJor13lo=";
2019-11-24 12:34:36 +00:00
};
2023-09-19 06:48:39 +01:00
cargoHash = "sha256-cYhzEVHpi7qMCU9fe3wxOQGX6YssJIeo4onLUBtqN6A=";
preCheck = ''
export HOME=$(mktemp -d)
git config --global user.name "Nixpkgs Test"
git config --global user.email "nobody@example.com"
'';
2019-11-24 12:34:36 +00:00
2020-08-17 10:14:04 +01:00
nativeBuildInputs = [ perl pkg-config ];
2019-11-24 12:34:36 +00:00
2022-08-13 04:55:13 +01:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ SystemConfiguration Security CoreFoundation libiconv curl ];
nativeCheckInputs = [ git ];
2019-11-24 12:34:36 +00:00
meta = with lib; {
2019-11-24 12:34:36 +00:00
description = "A cryptographically verifiable code review system for the cargo (Rust) package manager";
homepage = "https://github.com/crev-dev/cargo-crev";
license = with licenses; [ asl20 mit mpl20 ];
maintainers = with maintainers; [ b4dm4n matthiasbeyer ];
2019-11-24 12:34:36 +00:00
};
}