mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 04:49:01 +02:00
* libxml2 2.7.4. Quite a few packages depend on libxml2, so this
isn't the default yet. svn path=/nixpkgs/trunk/; revision=17245
This commit is contained in:
parent
0b063ec39f
commit
11e76d7303
27
pkgs/development/libraries/libxml2/2.7.4.nix
Normal file
27
pkgs/development/libraries/libxml2/2.7.4.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true}:
|
||||
|
||||
assert pythonSupport -> python != null;
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "libxml2-2.7.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = ftp://xmlsoft.org/libxml2/libxml2-sources-2.7.4.tar.gz;
|
||||
sha256 = "1psk9r69z02cmjpbixs89qj0zprfyi6xc598j51cc0gah0h3wq03";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
|
@ -3844,6 +3844,12 @@ let
|
|||
pythonSupport = false;
|
||||
};
|
||||
|
||||
# !!! Merge later.
|
||||
libxml2New = makeOverridable (import ../development/libraries/libxml2/2.7.4.nix) {
|
||||
inherit fetchurl stdenv zlib python;
|
||||
pythonSupport = false;
|
||||
};
|
||||
|
||||
libxml2Python = libxml2.override {
|
||||
pythonSupport = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue