diff options
author | Daniel Oertwig <Daniel.Oertwig@gmail.com> | 2013-12-16 18:47:20 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-12-16 21:30:36 +0100 |
commit | 42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c (patch) | |
tree | c271f2ee46b34600df15943ac9294f5a82930691 /pkgs/development/libraries/libxml2 | |
parent | f0ebdd42968f81cff4e156ff3f3cc4692a6ec8ee (diff) | |
download | nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar.gz nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar.bz2 nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar.lz nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar.xz nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.tar.zst nixlib-42560c78bbf3fdc1e4c45bb6b2d14f02e732bd5c.zip |
libxml2 w/o python --with-python=no on all systems
When building libxml2 without python enabled, pass "--with-python=no" to configure on all systems, not only on FreeBSD. Omitting mentioned configure option results in building libxml2 WITH python enabled. In this case, configure is looking for python by itself in system paths. With a rootless configuration, python includes from the host are accessed. If those files (Python.h) are not available, building libxml2 fails.
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index b86df4969c29..b235c746e1a0 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -41,7 +41,7 @@ stdenv.mkDerivation (rec { preInstall = ''substituteInPlace python/libxml2mod.la --replace "${python}" "$out"''; installFlags = ''pythondir="$(out)/lib/${python.libPrefix}/site-packages"''; -} // stdenv.lib.optionalAttrs (!pythonSupport && stdenv.isFreeBSD) { +} // stdenv.lib.optionalAttrs (!pythonSupport) { configureFlags = "--with-python=no"; # otherwise build impurity bites us }) |