blob: e55d685fefdec9ebbc7f5db94f0a8a83863d07dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
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 ];
};
})
|