2006-10-12 17:43:01 +02:00
|
|
|
{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true}:
|
|
|
|
|
|
|
|
assert zlib != null;
|
|
|
|
assert pythonSupport -> python != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-10-18 23:08:47 +02:00
|
|
|
name = "libxml2-2.6.30";
|
2006-10-12 17:43:01 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-10-18 23:08:47 +02:00
|
|
|
url = ftp://xmlsoft.org/libxml2/libxml2-2.6.30.tar.gz;
|
|
|
|
sha256 = "0pkk6cw0qd56kz2fkn768dcygbb4ncyvvmvyfiyli1a7yjh64xw7";
|
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
|
|
|
}
|