mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
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.
This commit is contained in:
parent
f0ebdd4296
commit
42560c78bb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue