forked from mirrors/nixpkgs
Merge pull request #40003 from timbertson/nix-pin
nix-pin: 0.2.2 -> 0.3.0
This commit is contained in:
commit
8f22baa40f
|
@ -1,20 +1,22 @@
|
||||||
{ pkgs, stdenv, fetchFromGitHub, mypy, python3 }:
|
{ lib, pkgs, stdenv, fetchFromGitHub, mypy, python3, nix, git, makeWrapper }:
|
||||||
let self = stdenv.mkDerivation rec {
|
let self = stdenv.mkDerivation rec {
|
||||||
name = "nix-pin-${version}";
|
name = "nix-pin-${version}";
|
||||||
version = "0.2.2";
|
version = "0.3.0";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "timbertson";
|
owner = "timbertson";
|
||||||
repo = "nix-pin";
|
repo = "nix-pin";
|
||||||
rev = "version-0.2.2";
|
rev = "version-0.3.0";
|
||||||
sha256 = "1kw43kzy4m6lnnif51r2a8i4vcgr7d4vqb1c75p7pk2b9y3jwxsz";
|
sha256 = "1kq50v8m8y1wji63b7y3wh6nv3ahvdxvvbsb07day2zzf5ysy8kj";
|
||||||
};
|
};
|
||||||
buildInputs = [ python3 mypy ];
|
buildInputs = [ python3 mypy makeWrapper ];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
mypy bin/*
|
mypy bin/*
|
||||||
'';
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
cp -r bin share "$out"
|
cp -r bin share "$out"
|
||||||
|
wrapProgram $out/bin/nix-pin \
|
||||||
|
--prefix PATH : "${lib.makeBinPath [ nix git ]}"
|
||||||
'';
|
'';
|
||||||
passthru =
|
passthru =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue