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