nixpkgs/pkgs/tools/package-management/nixpkgs-review/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
2018-03-27 23:15:38 +00:00
, python3
, fetchFromGitHub
2022-06-07 22:45:01 +00:00
, bubblewrap
, cacert
2018-06-28 21:07:56 +00:00
, git
2022-06-07 22:45:01 +00:00
, nix
, withSandboxSupport ? false
2018-03-27 23:15:38 +00:00
}:
python3.pkgs.buildPythonApplication rec {
pname = "nixpkgs-review";
version = "2.8.0";
2018-03-27 23:15:38 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = "nixpkgs-review";
2018-03-27 23:15:38 +00:00
rev = version;
sha256 = "sha256-v8IRRmONb10sPndfsuaUYMrGbbosj48cbfgANZCtIN0=";
2018-03-27 23:15:38 +00:00
};
2022-06-07 22:45:01 +00:00
makeWrapperArgs =
let
binPath = [ nix git ] ++ lib.optional withSandboxSupport bubblewrap;
in
[
"--prefix PATH : ${lib.makeBinPath binPath}"
"--set NIX_SSL_CERT_FILE ${cacert}/etc/ssl/certs/ca-bundle.crt"
# we don't have any runtime deps but nix-review shells might inject unwanted dependencies
"--unset PYTHONPATH"
];
2018-03-27 23:15:38 +00:00
doCheck = false;
meta = with lib; {
2018-03-27 23:15:38 +00:00
description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
homepage = "https://github.com/Mic92/nixpkgs-review";
changelog = "https://github.com/Mic92/nixpkgs-review/releases/tag/${version}";
2018-03-27 23:15:38 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda mic92 SuperSandro2000 ];
2018-03-27 23:15:38 +00:00
};
}