depot/third_party/nixpkgs/pkgs/by-name/pr/prr/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

41 lines
928 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
openssl,
pkg-config,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "prr";
version = "0.17.0";
src = fetchFromGitHub {
owner = "danobi";
repo = pname;
rev = "v${version}";
hash = "sha256-siQZ3rDKv2lnn1bmisRsexWwfvmMhK+z4GZGPsrfPgc=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-VIJFr1HpXMC2DXt79Yb1DuLYSbo9g6zsXaNDTXjtlR4=";
buildInputs =
[ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
description = "Tool that brings mailing list style code reviews to Github PRs";
homepage = "https://github.com/danobi/prr";
license = licenses.gpl2Only;
mainProgram = "prr";
maintainers = with maintainers; [ evalexpr ];
};
}