Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 36 lines 816 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 openssl, 6 pkg-config, 7 cacert, 8}: 9rustPlatform.buildRustPackage rec { 10 pname = "prr"; 11 version = "0.20.0"; 12 13 src = fetchFromGitHub { 14 owner = "danobi"; 15 repo = "prr"; 16 rev = "v${version}"; 17 hash = "sha256-duoC3TMgW+h5OrRCbqYPppMtnQBfS9R7ZpHQySgPRv4="; 18 }; 19 20 cargoHash = "sha256-W66kbTk0IAThl2H35EYuXr6UAyWfhmV0DxpnABhppSQ="; 21 22 buildInputs = [ openssl ]; 23 24 nativeBuildInputs = [ pkg-config ]; 25 26 SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; 27 checkInputs = [ cacert ]; 28 29 meta = with lib; { 30 description = "Tool that brings mailing list style code reviews to Github PRs"; 31 homepage = "https://github.com/danobi/prr"; 32 license = licenses.gpl2Only; 33 mainProgram = "prr"; 34 maintainers = with maintainers; [ evalexpr ]; 35 }; 36}