blob: 6f29f79e2c16833c2c4ceaaeaf4d7d88b0222e96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{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;
}
|