* 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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user