summary refs log tree commit diff
path: root/pkgs/applications/virtualization/xen
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2010-09-10 10:53:17 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2010-09-10 10:53:17 +0000
commitcea083bec96ec96710a226abc2e07b1c154aec76 (patch)
treed1d683327a0a8e77c2ac5a25a74358878cc5418d /pkgs/applications/virtualization/xen
parentdf1d0752ebf91603f792c42080c2233cae548973 (diff)
downloadnixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar.gz
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar.bz2
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar.lz
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar.xz
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.tar.zst
nixpkgs-cea083bec96ec96710a226abc2e07b1c154aec76.zip
* 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
Diffstat (limited to 'pkgs/applications/virtualization/xen')
-rw-r--r--pkgs/applications/virtualization/xen/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/xen/default.nix b/pkgs/applications/virtualization/xen/default.nix
index b7c9c1c3d5b..12d16b7f229 100644
--- a/pkgs/applications/virtualization/xen/default.nix
+++ b/pkgs/applications/virtualization/xen/default.nix
@@ -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";