blas: fix darwin library id

This commit is contained in:
Daiderd Jordan 2017-04-27 23:25:07 +02:00
parent 2bd39ab013
commit f240276000
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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;