pyenv: init at 2.3.21

This commit is contained in:
Theodore Ni 2023-06-22 13:01:50 -07:00
parent 5a8deb8e1c
commit 082e33ccde
No known key found for this signature in database
GPG key ID: 48B67583BDDD4474
2 changed files with 56 additions and 0 deletions

View 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;
};
}

View file

@ -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 { };