arpack: fix tests on darwin

This commit is contained in:
Markus Kowalewski 2019-04-02 17:13:18 +02:00
parent 9a60a65249
commit 70867a92f6
No known key found for this signature in database
GPG Key ID: 502A248E3FB4FF48

View File

@ -28,8 +28,11 @@ stdenv.mkDerivation {
"-DINTERFACE64=${optionalString openblas.blas64 "1"}"
];
preCheck = ''
preCheck = if stdenv.isDarwin then ''
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:`pwd`/lib
'' else ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/lib
'' + ''
# Prevent tests from using all cores
export OMP_NUM_THREADS=2
'';