Python-not-2.4 support for libxml2
svn path=/nixpkgs/trunk/; revision=15265
This commit is contained in:
parent
2021063052
commit
35bb7d6412
@ -3,7 +3,7 @@
|
|||||||
assert zlib != null;
|
assert zlib != null;
|
||||||
assert pythonSupport -> python != null;
|
assert pythonSupport -> python != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation ({
|
||||||
name = "libxml2-2.6.32";
|
name = "libxml2-2.6.32";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
|
|
||||||
@ -19,4 +19,8 @@ stdenv.mkDerivation {
|
|||||||
propagatedBuildInputs = [zlib];
|
propagatedBuildInputs = [zlib];
|
||||||
|
|
||||||
postInstall = "ensureDir $out/nix-support; cp ${./setup-hook.sh} $out/nix-support/setup-hook";
|
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 {}))
|
||||||
|
Loading…
Reference in New Issue
Block a user