Files
nixpkgs/pkgs/by-name/pr/prr/package.nix
Ben Siraphob 5506449838 pkgs/by-name: fix typos
Assisted-by: Claude Code (claude-opus-5)
2026-08-05 09:56:33 -07:00

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 ];
};
})