2006-10-12 16:43:01 +01:00
|
|
|
{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true}:
|
|
|
|
|
|
|
|
assert zlib != null;
|
|
|
|
assert pythonSupport -> python != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-06-12 10:49:40 +01:00
|
|
|
name = "libxml2-2.6.32";
|
2006-10-12 16:43:01 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2008-06-12 10:49:40 +01:00
|
|
|
url = ftp://xmlsoft.org/libxml2/libxml2-2.6.32.tar.gz;
|
|
|
|
sha256 = "0lsxr0akvp1sx29yh0nmzdhhc15dpa1i5chk40yaxjmgg6w2hi0v";
|
2006-10-12 16:43:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
python = if pythonSupport then python else null;
|
|
|
|
inherit pythonSupport zlib;
|
|
|
|
|
|
|
|
buildInputs = if pythonSupport then [python] else [];
|
|
|
|
propagatedBuildInputs = [zlib];
|
2007-10-18 22:08:47 +01:00
|
|
|
|
|
|
|
postInstall = "ensureDir $out/nix-support; cp ${./setup-hook.sh} $out/nix-support/setup-hook";
|
2006-10-12 16:43:01 +01:00
|
|
|
}
|