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-05-14 03:18:36 +02:00
|
|
|
name = "libxml2-2.6.27";
|
2006-10-12 17:43:01 +02:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2007-05-14 03:18:36 +02:00
|
|
|
url = ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.27.tar.bz2;
|
|
|
|
sha256 = "0kp0ghf5wgpv3ny6p4pvv38lj46ykbzsnpqpmv9irg4nidl72wl5";
|
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];
|
|
|
|
}
|