Python-not-2.4 support for libxml2

svn path=/nixpkgs/trunk/; revision=15265
This commit is contained in:
Michael Raskin 2009-04-23 10:24:40 +00:00
parent 2021063052
commit 35bb7d6412
1 changed files with 6 additions and 2 deletions

View File

@ -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 {}))