Merge pull request #124068 from risicle/ris-igraph-arpack-darwin-blas-paths

igraph,arpack: correct libblas.dylib's path on darwin, fixing python3Packages.python-igraph
This commit is contained in:
Robert Schütz 2021-05-23 13:12:11 +02:00 committed by GitHub
commit dfc658fd2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 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/";

View file

@ -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 = ''