igraph: fix libblas.dylib's path on darwin

(cherry picked from commit 73df171f26f426d1e2201e04ad0a7fa556eca17b)
This commit is contained in:
Robert Scott 2021-05-22 19:05:14 +01:00 committed by Robert Schütz
parent 6514fc8f6b
commit b7e6b86c74
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ stdenv.mkDerivation rec {
cp -r doc "$out/share"
'';
postFixup = lib.optionalString stdenv.isDarwin ''
install_name_tool -change libblas.dylib ${blas}/lib/libblas.dylib $out/lib/libigraph.dylib
'';
meta = with lib; {
description = "The network analysis package";
homepage = "https://igraph.org/";