nixpkgs/pkgs/tools/package-management/nixpkgs-review/default.nix
2021-01-25 18:31:47 +01:00

30 lines
641 B
Nix

{ lib
, python3
, fetchFromGitHub
, nixFlakes
, git
}:
python3.pkgs.buildPythonApplication rec {
pname = "nixpkgs-review";
version = "2.5.0";
src = fetchFromGitHub {
owner = "Mic92";
repo = "nixpkgs-review";
rev = version;
sha256 = "1k4i54j5if86qf9dmwm8ybfc4j7ap40y82f03hxfxb7lzq5cqmcv";
};
makeWrapperArgs = [
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes git ])
];
meta = with lib; {
description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
homepage = "https://github.com/Mic92/nixpkgs-review";
license = licenses.mit;
maintainers = [ maintainers.mic92 ];
};
}