mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
38 lines
840 B
Nix
38 lines
840 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
openssl,
|
|
pkg-config,
|
|
cacert,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "prr";
|
|
version = "0.21.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "danobi";
|
|
repo = "prr";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-G8/T3Jyr0ZtY302AvYxhaC+8Ld03cVL5Cuflz62e0mw=";
|
|
};
|
|
|
|
cargoHash = "sha256-R3gycEs9k0VSNd0tD8Fzgbu2ibhGvXgw8H1mnSlQMug=";
|
|
|
|
buildInputs = [ openssl ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
env.SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt";
|
|
|
|
checkInputs = [ cacert ];
|
|
|
|
meta = {
|
|
description = "Tool that brings mailing list style code reviews to GitHub PRs";
|
|
homepage = "https://github.com/danobi/prr";
|
|
license = lib.licenses.gpl2Only;
|
|
mainProgram = "prr";
|
|
maintainers = with lib.maintainers; [ evalexpr ];
|
|
};
|
|
})
|