Merge pull request #92347 from LnL7/darwin-libxml2
libxml2: fix python2 build on darwin
This commit is contained in:
commit
e0604a9333
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, lib, fetchurl, fetchpatch
|
{ stdenv, lib, fetchurl, fetchpatch
|
||||||
, zlib, xz, python, ncurses, findXMLCatalogs
|
, zlib, xz, python, gettext, ncurses, findXMLCatalogs
|
||||||
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
, icuSupport ? false, icu ? null
|
, icuSupport ? false, icu ? null
|
||||||
, enableShared ? stdenv.hostPlatform.libc != "msvcrt"
|
, enableShared ? stdenv.hostPlatform.libc != "msvcrt"
|
||||||
|
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||||
++ lib.optional (enableStatic && enableShared) "static";
|
++ lib.optional (enableStatic && enableShared) "static";
|
||||||
|
|
||||||
buildInputs = lib.optional pythonSupport python
|
buildInputs = lib.optional pythonSupport python
|
||||||
|
++ lib.optional (pythonSupport && python?isPy2 && python.isPy2) gettext
|
||||||
++ lib.optional (pythonSupport && python?isPy3 && python.isPy3) ncurses
|
++ lib.optional (pythonSupport && python?isPy3 && python.isPy3) ncurses
|
||||||
# Libxml2 has an optional dependency on liblzma. However, on impure
|
# Libxml2 has an optional dependency on liblzma. However, on impure
|
||||||
# platforms, it may end up using that from /usr/lib, and thus lack a
|
# platforms, it may end up using that from /usr/lib, and thus lack a
|
||||||
|
|
Loading…
Reference in New Issue