mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
Revert "separate libxml2 python bindings, added libconvOrLibC dependency"
This reverts commit 614b18668433329cc5686c34b51a63e51c86c9f4. svn path=/nixpkgs/branches/stdenv-updates/; revision=32650
This commit is contained in:
parent
360ec296a6
commit
c5a2f289f6
@ -1,4 +1,6 @@
|
|||||||
{ stdenv, fetchurl, libiconvOrLibc, zlib }:
|
{stdenv, fetchurl, zlib, python ? null, pythonSupport ? true }:
|
||||||
|
|
||||||
|
assert pythonSupport -> python != null;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "libxml2-2.7.7";
|
name = "libxml2-2.7.7";
|
||||||
@ -8,11 +10,15 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "03kkknm7xl77qfdig8mzalsi8ljsyblzin18gy3h8zranffrpyzs";
|
sha256 = "03kkknm7xl77qfdig8mzalsi8ljsyblzin18gy3h8zranffrpyzs";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ libiconvOrLibc zlib ];
|
configureFlags = ''
|
||||||
|
${if pythonSupport then "--with-python=${python}" else ""}
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [zlib];
|
||||||
|
|
||||||
setupHook = ./setup-hook.sh;
|
setupHook = ./setup-hook.sh;
|
||||||
|
|
||||||
passthru = { libiconv = libiconvOrLibc; };
|
passthru = {inherit pythonSupport;};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://xmlsoft.org/;
|
homepage = http://xmlsoft.org/;
|
||||||
|
@ -4234,9 +4234,13 @@ let
|
|||||||
|
|
||||||
libxmi = callPackage ../development/libraries/libxmi { };
|
libxmi = callPackage ../development/libraries/libxmi { };
|
||||||
|
|
||||||
libxml2 = callPackage ../development/libraries/libxml2 { };
|
libxml2 = callPackage ../development/libraries/libxml2 {
|
||||||
|
pythonSupport = false;
|
||||||
|
};
|
||||||
|
|
||||||
libxml2Python = pythonPackages.libxml2;
|
libxml2Python = libxml2.override {
|
||||||
|
pythonSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
libxmlxx = callPackage ../development/libraries/libxmlxx {
|
libxmlxx = callPackage ../development/libraries/libxmlxx {
|
||||||
inherit (gtkLibs) glibmm;
|
inherit (gtkLibs) glibmm;
|
||||||
|
@ -665,35 +665,6 @@ let pythonPackages = python.modules // rec {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
libxml2 = buildPythonPackage (rec {
|
|
||||||
name = pkgs.libxml2.name;
|
|
||||||
src = pkgs.libxml2.src;
|
|
||||||
|
|
||||||
buildInputs = [ python ];
|
|
||||||
propagatedBuildInputs = [ pkgs.libxml2 ];
|
|
||||||
|
|
||||||
configureFlags = "--with-python=${python}";
|
|
||||||
|
|
||||||
postConfigure = ''
|
|
||||||
cd python
|
|
||||||
sed -i setup.py \
|
|
||||||
-e "s:^ROOT.*:ROOT = r'${pkgs.libxml2}':" \
|
|
||||||
-e "s:^iconv_includes.*:iconv_includes= r'${pkgs.libxml2.libiconv}':"
|
|
||||||
'';
|
|
||||||
|
|
||||||
# has no tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
passthru = { lib = pkgs.libxml2; };
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://xmlsoft.org/;
|
|
||||||
description = "Python bindings for libxml2";
|
|
||||||
license = "bsd";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
lockfile = buildPythonPackage rec {
|
lockfile = buildPythonPackage rec {
|
||||||
name = "lockfile-0.9.1";
|
name = "lockfile-0.9.1";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user