nixpkgs/pkgs/tools/package-management/nix-review/default.nix

32 lines
669 B
Nix
Raw Normal View History

2018-03-27 23:15:38 +00:00
{ stdenv
, python3
, fetchFromGitHub
, nix
, makeWrapper
}:
python3.pkgs.buildPythonApplication rec {
pname = "nix-review";
2018-04-22 11:49:17 +00:00
version = "0.2.0";
2018-03-27 23:15:38 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = "nix-review";
rev = version;
2018-04-22 11:49:17 +00:00
sha256 = "138f9m2c8fwpvn3kv5q7845ffi1pjbqxcs44aych4832i0pn6jaf";
2018-03-27 23:15:38 +00:00
};
buildInputs = [ makeWrapper ];
preFixup = ''
wrapProgram $out/bin/nix-review --prefix PATH : ${nix}/bin
'';
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 ];
};
}