mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
f01ceffb9e
svn path=/nixpkgs/trunk/; revision=23200
19 lines
527 B
Nix
19 lines
527 B
Nix
{stdenv, python, makeWrapper, extraLibs ? []}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "python-${python.version}-wrapper";
|
|
|
|
propagatedBuildInputs = [python makeWrapper] ++ extraLibs;
|
|
|
|
unpackPhase = "true";
|
|
installPhase = ''
|
|
ensureDir "$out/bin"
|
|
for prg in 2to3 idle pydoc python python-config python${python.majorVersion} python${python.majorVersion}-config smtpd.py; do
|
|
makeWrapper "$python/bin/$prg" "$out/bin/$prg" --suffix PYTHONPATH : "$PYTHONPATH"
|
|
done
|
|
'';
|
|
|
|
inherit python;
|
|
inherit (python) meta;
|
|
}
|