diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-28 18:12:32 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2011-03-28 18:12:32 +0000 |
commit | c1b64da1c939550e94151dfd9947e1f166a35fd9 (patch) | |
tree | 8fe9d3445cf63194c3f4b369ae85231abe33b108 /pkgs/applications/virtualization/xen | |
parent | 968496e69bdd4de62fd447f88da2660bd144735f (diff) | |
download | nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar.gz nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar.bz2 nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar.lz nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar.xz nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.tar.zst nixpkgs-c1b64da1c939550e94151dfd9947e1f166a35fd9.zip |
* xen: use wrapPython.
svn path=/nixpkgs/branches/modular-python/; revision=26584
Diffstat (limited to 'pkgs/applications/virtualization/xen')
-rw-r--r-- | pkgs/applications/virtualization/xen/default.nix | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/pkgs/applications/virtualization/xen/default.nix b/pkgs/applications/virtualization/xen/default.nix index 4c93a277e98..b688bf1e310 100644 --- a/pkgs/applications/virtualization/xen/default.nix +++ b/pkgs/applications/virtualization/xen/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchurl, which, zlib, pkgconfig, SDL, openssl, python , libuuid, gettext, ncurses, dev86, iasl, pciutils, bzip2, xz -, lvm2, utillinux, procps, texinfo, perl }: +, lvm2, utillinux, procps, texinfo, perl, wrapPython, pythonPackages }: with stdenv.lib; @@ -51,9 +51,11 @@ stdenv.mkDerivation { buildInputs = [ which zlib pkgconfig SDL openssl python libuuid gettext ncurses - dev86 iasl pciutils bzip2 xz texinfo perl + dev86 iasl pciutils bzip2 xz texinfo perl wrapPython ]; + pythonPath = [ pythonPackages.curses ]; + makeFlags = "PREFIX=$(out) CONFIG_DIR=/etc"; buildFlags = "xen tools stubdom"; @@ -121,19 +123,7 @@ stdenv.mkDerivation { cp -prvd dist/install/boot $out/boot cp -prvd dist/install/etc $out/etc cp -dR docs/man1 docs/man5 $out/share/man/ - ''; # */ - - postFixup = - '' - # Set the Python search path in all Python scripts. - 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 - - # Remove calls to `env'. - for fn in $(grep -l '#!.*/env.*python' $out/bin/* $out/sbin/*); do - sed -i "$fn" -e "1 s^/nix/store/.*/env.*python^${python}/bin/python^" - done + wrapPythonPrograms ''; # */ meta = { |