depot/third_party/nixpkgs/pkgs/by-name/pr/prr/package.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

38 lines
865 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, openssl
, pkg-config
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "prr";
version = "0.14.0";
src = fetchFromGitHub {
owner = "danobi";
repo = pname;
rev = "v${version}";
hash = "sha256-aEugpAa1W7iBMQDojs38mYH8xZ/VMd47Bv3toFQhTSs=";
};
cargoHash = "sha256-+CrBsQFOfw8vCafk66Wmatcf2t5gu4gEXAKjxvvPgEg=";
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 ];
};
}