c5a2f289f6
This reverts commit 614b18668433329cc5686c34b51a63e51c86c9f4. svn path=/nixpkgs/branches/stdenv-updates/; revision=32650
29 lines
699 B
Nix
29 lines
699 B
Nix
{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true }:
|
|
|
|
assert pythonSupport -> python != null;
|
|
|
|
stdenv.mkDerivation {
|
|
name = "libxml2-2.7.7";
|
|
|
|
src = fetchurl {
|
|
url = ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.7.tar.gz;
|
|
sha256 = "03kkknm7xl77qfdig8mzalsi8ljsyblzin18gy3h8zranffrpyzs";
|
|
};
|
|
|
|
configureFlags = ''
|
|
${if pythonSupport then "--with-python=${python}" else ""}
|
|
'';
|
|
|
|
propagatedBuildInputs = [zlib];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
passthru = {inherit pythonSupport;};
|
|
|
|
meta = {
|
|
homepage = http://xmlsoft.org/;
|
|
description = "A XML parsing library for C";
|
|
license = "bsd";
|
|
};
|
|
}
|