mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #152728 from jdelStrother/libjxl-darwin
libjxl: Fix tests on darwin
This commit is contained in:
commit
e99f36fc5f
@ -108,7 +108,9 @@ stdenv.mkDerivation rec {
|
|||||||
# LD_LIBRARY_PATH setting errors with:
|
# LD_LIBRARY_PATH setting errors with:
|
||||||
# /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
|
# /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
|
||||||
# The required file is in the build directory (`$PWD`).
|
# The required file is in the build directory (`$PWD`).
|
||||||
preCheck = ''
|
preCheck = if stdenv.isDarwin then ''
|
||||||
|
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
|
||||||
|
'' else ''
|
||||||
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user