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