diff options
author | Daiderd Jordan <daiderd@gmail.com> | 2020-07-05 15:09:38 +0200 |
---|---|---|
committer | Daiderd Jordan <daiderd@gmail.com> | 2020-07-05 15:09:38 +0200 |
commit | cc148a4b3e10d527abb659bc3ae6af54b6226431 (patch) | |
tree | 243e010fff6812691f0b6d6f13875eb3a8de7f9f /pkgs/development/libraries/libxml2 | |
parent | e0f07f9b8d737eff6d7f90847f8360afc79fb90a (diff) |
libxml2: fix python2 build on darwin
Diffstat (limited to 'pkgs/development/libraries/libxml2')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 7c39d80390677..9ea7dc6c9d535 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchurl, fetchpatch -, zlib, xz, python, ncurses, findXMLCatalogs +, zlib, xz, python, gettext, ncurses, findXMLCatalogs , pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform , icuSupport ? false, icu ? null , enableShared ? stdenv.hostPlatform.libc != "msvcrt" @@ -44,6 +44,7 @@ stdenv.mkDerivation rec { ++ lib.optional (enableStatic && enableShared) "static"; buildInputs = lib.optional pythonSupport python + ++ lib.optional (pythonSupport && python?isPy2 && python.isPy2) gettext ++ lib.optional (pythonSupport && python?isPy3 && python.isPy3) ncurses # Libxml2 has an optional dependency on liblzma. However, on impure # platforms, it may end up using that from /usr/lib, and thus lack a |