From 96b106bc5c468b18a0ef52191d30fbd8a3518ee7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 28 Mar 2018 00:15:38 +0100 Subject: [PATCH] nix-review: init at 0.1.0 --- .../package-management/nix-review/default.nix | 31 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/package-management/nix-review/default.nix diff --git a/pkgs/tools/package-management/nix-review/default.nix b/pkgs/tools/package-management/nix-review/default.nix new file mode 100644 index 000000000000..3dc452db3e26 --- /dev/null +++ b/pkgs/tools/package-management/nix-review/default.nix @@ -0,0 +1,31 @@ +{ stdenv +, python3 +, fetchFromGitHub +, nix +, makeWrapper +}: + +python3.pkgs.buildPythonApplication rec { + pname = "nix-review"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "Mic92"; + repo = "nix-review"; + rev = version; + sha256 = "1kafp3x95dklydy5224w0a292rd8pv30lz6z5ddk6y7zg3fsxrcr"; + }; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 490f3b3f45bb..8ae5f2517f33 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20542,6 +20542,8 @@ with pkgs; nix-repl = callPackage ../tools/package-management/nix-repl { nix = nix1; }; + nix-review = callPackage ../tools/package-management/nix-review { }; + nix-serve = callPackage ../tools/package-management/nix-serve { }; nixos-artwork = callPackage ../data/misc/nixos-artwork { };