diff options
author | Michael Raskin | 2009-04-23 10:24:40 +0000 |
---|---|---|
committer | Michael Raskin | 2009-04-23 10:24:40 +0000 |
commit | 35bb7d64126194bbb83863974bb03845929f183f (patch) | |
tree | f8e31cb899e8c729ab9aaa2673adea0df0f1229c | |
parent | 202106305235b3bd0701e07740de5f5e75967310 (diff) |
Python-not-2.4 support for libxml2
svn path=/nixpkgs/trunk/; revision=15265
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index a1043bad67cc..1a0b0557b14c 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -3,7 +3,7 @@ assert zlib != null; assert pythonSupport -> python != null; -stdenv.mkDerivation { +stdenv.mkDerivation ({ name = "libxml2-2.6.32"; builder = ./builder.sh; @@ -19,4 +19,8 @@ stdenv.mkDerivation { propagatedBuildInputs = [zlib]; postInstall = "ensureDir $out/nix-support; cp ${./setup-hook.sh} $out/nix-support/setup-hook"; -} +} // (if pythonSupport then { + preConfigure = '' + sed -e "s^pythondir=.*$^pythondir=$(toPythonPath $out)^" < configure.old > configure + ''; +} else {})) |