From 3cce9b107a7531c52e8b85bba33ec396d2fefda6 Mon Sep 17 00:00:00 2001 From: Tim Cuthbertson Date: Sat, 5 May 2018 19:53:40 +1000 Subject: [PATCH] nix-pin: 0.2.2 -> 0.3.0 --- pkgs/tools/package-management/nix-pin/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/package-management/nix-pin/default.nix b/pkgs/tools/package-management/nix-pin/default.nix index bb3a1faa0c3..6f109cd9f41 100644 --- a/pkgs/tools/package-management/nix-pin/default.nix +++ b/pkgs/tools/package-management/nix-pin/default.nix @@ -1,20 +1,22 @@ -{ pkgs, stdenv, fetchFromGitHub, mypy, python3 }: +{ lib, pkgs, stdenv, fetchFromGitHub, mypy, python3, nix, git, makeWrapper }: let self = stdenv.mkDerivation rec { name = "nix-pin-${version}"; - version = "0.2.2"; + version = "0.3.0"; src = fetchFromGitHub { owner = "timbertson"; repo = "nix-pin"; - rev = "version-0.2.2"; - sha256 = "1kw43kzy4m6lnnif51r2a8i4vcgr7d4vqb1c75p7pk2b9y3jwxsz"; + rev = "version-0.3.0"; + sha256 = "1kq50v8m8y1wji63b7y3wh6nv3ahvdxvvbsb07day2zzf5ysy8kj"; }; - buildInputs = [ python3 mypy ]; + buildInputs = [ python3 mypy makeWrapper ]; buildPhase = '' mypy bin/* ''; installPhase = '' mkdir "$out" cp -r bin share "$out" + wrapProgram $out/bin/nix-pin \ + --prefix PATH : "${lib.makeBinPath [ nix git ]}" ''; passthru = let