2018-03-28 01:15:38 +02:00
|
|
|
{ stdenv
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix
|
2018-06-28 23:07:56 +02:00
|
|
|
, git
|
2018-03-28 01:15:38 +02:00
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "nix-review";
|
2018-06-28 23:07:56 +02:00
|
|
|
version = "0.3.0";
|
2018-03-28 01:15:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "nix-review";
|
|
|
|
rev = version;
|
2018-06-28 23:07:56 +02:00
|
|
|
sha256 = "0dv6hzmfqyhfi6zzjm10nzzqiy2wyfhiksm1cd4fznq0psxaihfj";
|
2018-03-28 01:15:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
preFixup = ''
|
2018-06-28 23:07:56 +02:00
|
|
|
wrapProgram $out/bin/nix-review --prefix PATH : ${stdenv.lib.makeBinPath [
|
|
|
|
git nix
|
|
|
|
]}
|
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 ];
|
|
|
|
};
|
|
|
|
}
|