2018-03-28 01:15:38 +02:00
|
|
|
{ stdenv
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix
|
2018-06-28 23:07:56 +02:00
|
|
|
, git
|
2018-08-17 18:49:32 +02:00
|
|
|
, lib
|
2018-03-28 01:15:38 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "nix-review";
|
2019-05-07 08:12:55 +02:00
|
|
|
version = "2.0.1";
|
2018-03-28 01:15:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "nix-review";
|
|
|
|
rev = version;
|
2019-05-07 08:12:55 +02:00
|
|
|
sha256 = "19x0wbb8annmzi67r79112j9kjzz99n3qd6adh80iqx2dh47pk5g";
|
2018-03-28 01:15:38 +02:00
|
|
|
};
|
|
|
|
|
2018-08-17 18:49:32 +02:00
|
|
|
makeWrapperArgs = [
|
2019-09-09 01:38:31 +02:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nix git ])
|
2018-08-17 18:49:32 +02:00
|
|
|
];
|
2018-03-28 01:15:38 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|