diff options
author | Robert Scott <code@humanleg.org.uk> | 2022-05-06 00:55:53 +0100 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2022-05-06 00:55:53 +0100 |
commit | f87f5ae301c39e8adeed184d908bd9dd083de3f7 (patch) | |
tree | 221bb86438a95c0cbb0ff380de988b6dfbbcf992 /pkgs/development/libraries/libxml2/default.nix | |
parent | 19d7d6417fd59a8cc1f29c01b0a9c6dd6aa97ee1 (diff) |
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
Diffstat (limited to 'pkgs/development/libraries/libxml2/default.nix')
-rw-r--r-- | pkgs/development/libraries/libxml2/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 06c073c718ac9..68607594b4ee2 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 |