2ff702e937
Fixes build: https://hydra.nixos.org/build/152282553
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, perl
|
|
, pkg-config
|
|
, SystemConfiguration
|
|
, Security
|
|
, curl
|
|
, libiconv
|
|
, openssl
|
|
, git
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-crev";
|
|
version = "0.20.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "crev-dev";
|
|
repo = "cargo-crev";
|
|
rev = version;
|
|
sha256 = "sha256-j2dafXUI6rDEYboSAciMeNma/YaBYKuQZgMUGVU+oBQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-khrpS6QFpweKbTbR0YhAJTTrgDoZl9fzYPDs+JE1mtA=";
|
|
|
|
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.isDarwin [ SystemConfiguration Security libiconv curl ];
|
|
|
|
checkInputs = [ git ];
|
|
|
|
meta = with lib; {
|
|
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 ];
|
|
};
|
|
}
|