2018-03-28 00:15:38 +01:00
|
|
|
{ stdenv
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
2020-11-26 10:57:44 +00:00
|
|
|
, nixFlakes
|
2018-06-28 22:07:56 +01:00
|
|
|
, git
|
2018-08-17 17:49:32 +01:00
|
|
|
, lib
|
2018-03-28 00:15:38 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-12-22 09:21:09 +00:00
|
|
|
pname = "nixpkgs-review";
|
2020-11-26 10:57:44 +00:00
|
|
|
version = "2.5.0";
|
2018-03-28 00:15:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
2019-12-22 09:21:09 +00:00
|
|
|
repo = "nixpkgs-review";
|
2018-03-28 00:15:38 +01:00
|
|
|
rev = version;
|
2020-11-26 10:57:44 +00:00
|
|
|
sha256 = "1k4i54j5if86qf9dmwm8ybfc4j7ap40y82f03hxfxb7lzq5cqmcv";
|
2018-03-28 00:15:38 +01:00
|
|
|
};
|
|
|
|
|
2018-08-17 17:49:32 +01:00
|
|
|
makeWrapperArgs = [
|
2020-11-26 10:57:44 +00:00
|
|
|
"--prefix" "PATH" ":" (lib.makeBinPath [ nixFlakes git ])
|
2018-08-17 17:49:32 +01:00
|
|
|
];
|
2018-03-28 00:15:38 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Mic92/nixpkgs-review";
|
2018-03-28 00:15:38 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.mic92 ];
|
|
|
|
};
|
|
|
|
}
|