* Set the Python search path for Xen's Python scripts. As an
experiment, do this by patching a line setting sys.path into the script, rather than using makeWrapper. * Xen requires pythonFull because it needs https/ssl support. svn path=/nixpkgs/trunk/; revision=23710
This commit is contained in:
parent
df1d0752eb
commit
cea083bec9
@ -32,6 +32,14 @@ stdenv.mkDerivation {
|
||||
cp -prvd dist/install/boot $out/boot
|
||||
''; # */
|
||||
|
||||
# Set the Python search path in all Python scripts.
|
||||
postFixup =
|
||||
''
|
||||
for fn in $(grep -l '#!.*python' $out/bin/* $out/sbin/*); do
|
||||
sed -i "$fn" -e "1 a import sys\nsys.path = ['$out/lib/python2.6/site-packages'] + sys.path"
|
||||
done
|
||||
''; # */
|
||||
|
||||
meta = {
|
||||
homepage = http://www.xen.org/;
|
||||
description = "Xen hypervisor and management tools for Dom0";
|
||||
|
@ -6204,7 +6204,9 @@ let
|
||||
|
||||
xdg_utils = callPackage ../tools/X11/xdg-utils { };
|
||||
|
||||
xen = callPackage ../applications/virtualization/xen { };
|
||||
xen = callPackage ../applications/virtualization/xen {
|
||||
python = pythonFull;
|
||||
};
|
||||
|
||||
xfig = callPackage ../applications/graphics/xfig {
|
||||
stdenv = overrideGCC stdenv gcc34;
|
||||
|
Loading…
Reference in New Issue
Block a user