* 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:
Eelco Dolstra 2010-09-10 10:53:17 +00:00
parent df1d0752eb
commit cea083bec9
2 changed files with 11 additions and 1 deletions

View File

@ -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";

View File

@ -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;