From f87f5ae301c39e8adeed184d908bd9dd083de3f7 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Fri, 6 May 2022 00:55:53 +0100 Subject: [PATCH] libxml2: re-enable tests for darwin appears the lack of sandbox on most darwin machines allows the tests to accidentally find /usr/lib/libxml2.dylib, which causes problems --- pkgs/development/libraries/libxml2/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 06c073c718ac..68607594b4ee 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -94,8 +94,10 @@ stdenv.mkDerivation rec { doCheck = (stdenv.hostPlatform == stdenv.buildPlatform) && - !stdenv.isDarwin && stdenv.hostPlatform.libc != "musl"; + preCheck = lib.optional stdenv.isDarwin '' + export DYLD_LIBRARY_PATH="$PWD/.libs:$DYLD_LIBRARY_PATH" + ''; preConfigure = lib.optionalString (lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11") '' MACOSX_DEPLOYMENT_TARGET=10.16