From 3e4774765769f9e07b9e7249bfc48bb56733967c Mon Sep 17 00:00:00 2001 From: Andrew Childs Date: Thu, 18 Feb 2021 22:11:19 +0900 Subject: [PATCH] libxml2: cap MACOSX_DEPLOYMENT_TARGET at 10.16 libxml2 is used in bootstrapping, so the alternates solution of running libtoolize is tricky here. --- pkgs/development/libraries/libxml2/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index f436528e13c..ca3cbc4a188 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -3,7 +3,7 @@ , pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform , icuSupport ? false, icu ? null , enableShared ? stdenv.hostPlatform.libc != "msvcrt" -, enableStatic ? !enableShared, +, enableStatic ? !enableShared }: stdenv.mkDerivation rec { @@ -53,6 +53,10 @@ stdenv.mkDerivation rec { (lib.withFeatureAs pythonSupport "python" python) ]; + preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") '' + MACOSX_DEPLOYMENT_TARGET=10.16 + ''; + enableParallelBuilding = true; # disable test that's problematic with newer pythons: see