nixpkgs-suyu/pkgs/by-name/pr/prr/package.nix

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

39 lines
865 B
Nix
Raw Normal View History

2023-12-11 16:27:09 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, openssl
, pkg-config
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "prr";
2024-02-09 01:35:49 +01:00
version = "0.17.0";
2023-12-11 16:27:09 +01:00
src = fetchFromGitHub {
owner = "danobi";
repo = pname;
rev = "v${version}";
2024-02-09 01:35:49 +01:00
hash = "sha256-siQZ3rDKv2lnn1bmisRsexWwfvmMhK+z4GZGPsrfPgc=";
2023-12-11 16:27:09 +01:00
};
2024-02-09 01:35:49 +01:00
cargoHash = "sha256-vCZjgmBYO+I6MZLCOMp50bWEeHwLbZsxSz5gRmBykvI=";
2023-12-11 16:27:09 +01:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
nativeBuildInputs = [ pkg-config ];
meta = with lib; {
description = "A 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 ];
};
}