nixpkgs-suyu/pkgs/tools/package-management/nix-review/default.nix
2019-03-20 11:27:46 +00:00

30 lines
634 B
Nix

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