forked from mirrors/nixpkgs
commit
5e3de3938e
|
@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
|||
sha256 = "1f9ql6cjy2gwiyc51ylfan24v1ca9sjajxkbhszlds1lqmma8n05";
|
||||
};
|
||||
|
||||
buildInputs = [ blas gfortran liblapack ];
|
||||
buildInputs = [ blas gfortran.cc.lib liblapack ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace /usr/local/bin $out/bin
|
||||
|
|
|
@ -46,6 +46,13 @@ stdenv.mkDerivation rec {
|
|||
ln -s libblas.so.${version} "$out/lib/libblas.so"
|
||||
'';
|
||||
|
||||
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''
|
||||
for fn in $(find $out/lib -name "*.so*"); do
|
||||
if [ -L "$fn" ]; then continue; fi
|
||||
install_name_tool -id "$fn" "$fn"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Basic Linear Algebra Subprograms";
|
||||
license = stdenv.lib.licenses.publicDomain;
|
||||
|
|
Loading…
Reference in a new issue