a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, python3
|
|
, fetchFromGitHub
|
|
|
|
, bubblewrap
|
|
, cacert
|
|
, git
|
|
, nix
|
|
|
|
, withSandboxSupport ? false
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "nixpkgs-review";
|
|
version = "2.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "nixpkgs-review";
|
|
rev = version;
|
|
sha256 = "sha256-v8IRRmONb10sPndfsuaUYMrGbbosj48cbfgANZCtIN0=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
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}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda mic92 SuperSandro2000 ];
|
|
};
|
|
}
|