forked from mirrors/nixpkgs
c556a6ea46
function, so obsolete it. svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
19 lines
526 B
Nix
19 lines
526 B
Nix
{stdenv, python, makeWrapper, extraLibs ? []}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "python-${python.version}-wrapper";
|
|
|
|
propagatedBuildInputs = [python makeWrapper] ++ extraLibs;
|
|
|
|
unpackPhase = "true";
|
|
installPhase = ''
|
|
mkdir -p "$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;
|
|
}
|