pyenv: init at 2.3.21
This commit is contained in:
parent
5a8deb8e1c
commit
082e33ccde
2 changed files with 56 additions and 0 deletions
54
pkgs/development/tools/pyenv/default.nix
Normal file
54
pkgs/development/tools/pyenv/default.nix
Normal file
|
@ -0,0 +1,54 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pyenv";
|
||||
version = "2.3.21";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyenv";
|
||||
repo = "pyenv";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-+rMkbrRSQBHX9qdifIpdLmQ8Uk39ott0xyJTD/mb+9w=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs --build src/configure
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
configureScript = "src/configure";
|
||||
|
||||
makeFlags = ["-C" "src"];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out"
|
||||
cp -R bin "$out/bin"
|
||||
cp -R libexec "$out/libexec"
|
||||
cp -R plugins "$out/plugins"
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installManPage man/man1/pyenv.1
|
||||
installShellCompletion completions/pyenv.{bash,fish,zsh}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple Python version management";
|
||||
homepage = "https://github.com/pyenv/pyenv";
|
||||
changelog = "https://github.com/pyenv/pyenv/blob/${src.rev}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ tjni ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -5893,6 +5893,8 @@ with pkgs;
|
|||
|
||||
psrecord = python3Packages.callPackage ../tools/misc/psrecord { };
|
||||
|
||||
pyenv = callPackage ../development/tools/pyenv { };
|
||||
|
||||
r53-ddns = callPackage ../applications/networking/r53-ddns { };
|
||||
|
||||
rare = python3Packages.callPackage ../games/rare { };
|
||||
|
|
Loading…
Reference in a new issue