Skip to content

Commit

Permalink
Merge pull request NixOS#124068 from risicle/ris-igraph-arpack-darwin…
Browse files Browse the repository at this point in the history
…-blas-paths

igraph,arpack: correct libblas.dylib's path on darwin, fixing python3Packages.python-igraph
  • Loading branch information
dotlambda authored May 23, 2021
2 parents 5810800 + 73df171 commit dfc658f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/libraries/igraph/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down
4 changes: 4 additions & 0 deletions pkgs/development/libraries/science/math/arpack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit dfc658f

Please sign in to comment.