mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
d88eafbacd
Diff: https://github.com/pyenv/pyenv/compare/refs/tags/v2.4.11...v2.4.12 Changelog: https://github.com/pyenv/pyenv/blob/refs/tags/v2.4.12/CHANGELOG.md Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pyenv";
|
|
version = "2.4.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pyenv";
|
|
repo = "pyenv";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-ZvXtDD9HKwOJiUpR8ThqyCHWyMFs46dIrOgPMNpuHrY=";
|
|
};
|
|
|
|
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;
|
|
mainProgram = "pyenv";
|
|
};
|
|
}
|