From 1241d9fae3451b824506277174b6053a379f4db7 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sat, 22 May 2021 19:03:56 +0100 Subject: [PATCH] arpack: fix libblas.dylib's path on darwin --- pkgs/development/libraries/science/math/arpack/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/science/math/arpack/default.nix b/pkgs/development/libraries/science/math/arpack/default.nix index 23e44bf28b06..a26a3bb6d8d9 100644 --- a/pkgs/development/libraries/science/math/arpack/default.nix +++ b/pkgs/development/libraries/science/math/arpack/default.nix @@ -46,6 +46,10 @@ stdenv.mkDerivation rec { export OMP_NUM_THREADS=2 ''; + postFixup = lib.optionalString stdenv.isDarwin '' + install_name_tool -change libblas.dylib ${blas}/lib/libblas.dylib $out/lib/libarpack.dylib + ''; + meta = { homepage = "https://github.com/opencollab/arpack-ng"; description = ''