mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #38374 from timbertson/nix-pin
nix-pin: init at 0.1.2
This commit is contained in:
commit
9392b10d4a
2 changed files with 34 additions and 0 deletions
32
pkgs/tools/package-management/nix-pin/default.nix
Normal file
32
pkgs/tools/package-management/nix-pin/default.nix
Normal file
|
@ -0,0 +1,32 @@
|
|||
{ pkgs, stdenv, fetchFromGitHub, mypy, python3 }:
|
||||
let self = stdenv.mkDerivation rec {
|
||||
name = "nix-pin-${version}";
|
||||
version = "0.1.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "timbertson";
|
||||
repo = "nix-pin";
|
||||
rev = "version-0.1.2";
|
||||
sha256 = "1zwfb5198qzbjwivgiaxbwva9frgrrqaj92nw8vz95yi08pijssh";
|
||||
};
|
||||
buildInputs = [ python3 mypy ];
|
||||
buildPhase = ''
|
||||
mypy bin/*
|
||||
'';
|
||||
installPhase = ''
|
||||
mkdir "$out"
|
||||
cp -r bin share "$out"
|
||||
'';
|
||||
passthru = {
|
||||
callWithPins = path: args:
|
||||
import "${self}/share/nix/call.nix" {
|
||||
inherit pkgs path args;
|
||||
};
|
||||
};
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://github.com/timbertson/nix-pin";
|
||||
description = "nixpkgs development utility";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.timbertson ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}; in self
|
|
@ -20617,6 +20617,8 @@ with pkgs;
|
|||
|
||||
nix-index = callPackage ../tools/package-management/nix-index { };
|
||||
|
||||
nix-pin = callPackage ../tools/package-management/nix-pin { };
|
||||
|
||||
inherit (callPackages ../tools/package-management/nix-prefetch-scripts { })
|
||||
nix-prefetch-bzr
|
||||
nix-prefetch-cvs
|
||||
|
|
Loading…
Reference in a new issue