python.buildEnv: only wrap executables
This commit is contained in:
parent
f4ca99166a
commit
4495bfe138
@ -10,8 +10,6 @@ rec {
|
|||||||
xen_4_5-vanilla = callPackage ./4.5.nix {
|
xen_4_5-vanilla = callPackage ./4.5.nix {
|
||||||
# At the very least included seabios and etherboot need gcc49,
|
# At the very least included seabios and etherboot need gcc49,
|
||||||
# so we have to build all of it with gcc49.
|
# so we have to build all of it with gcc49.
|
||||||
stdenv = overrideCC stdenv gcc49;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "vanilla";
|
description = "vanilla";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
@ -60,8 +58,6 @@ rec {
|
|||||||
xen_4_8-vanilla = callPackage ./4.8.nix {
|
xen_4_8-vanilla = callPackage ./4.8.nix {
|
||||||
# At the very least included seabios and etherboot need gcc49,
|
# At the very least included seabios and etherboot need gcc49,
|
||||||
# so we have to build all of it with gcc49.
|
# so we have to build all of it with gcc49.
|
||||||
stdenv = overrideCC stdenv gcc49;
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "vanilla";
|
description = "vanilla";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -28,8 +28,10 @@ let
|
|||||||
for prg in *; do
|
for prg in *; do
|
||||||
if [ -f "$prg" ]; then
|
if [ -f "$prg" ]; then
|
||||||
rm -f "$out/bin/$prg"
|
rm -f "$out/bin/$prg"
|
||||||
|
if [ -x "$prg" ]; then
|
||||||
makeWrapper "$path/bin/$prg" "$out/bin/$prg" --set PYTHONHOME "$out" --set PYTHONNOUSERSITE "true"
|
makeWrapper "$path/bin/$prg" "$out/bin/$prg" --set PYTHONHOME "$out" --set PYTHONNOUSERSITE "true"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user