3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #25217 from LnL7/darwin-csdp

csdp: fix darwin build
This commit is contained in:
Daiderd Jordan 2017-04-30 14:33:30 +02:00 committed by GitHub
commit 5e3de3938e
2 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,7 @@ stdenv.mkDerivation {
sha256 = "1f9ql6cjy2gwiyc51ylfan24v1ca9sjajxkbhszlds1lqmma8n05"; sha256 = "1f9ql6cjy2gwiyc51ylfan24v1ca9sjajxkbhszlds1lqmma8n05";
}; };
buildInputs = [ blas gfortran liblapack ]; buildInputs = [ blas gfortran.cc.lib liblapack ];
postPatch = '' postPatch = ''
substituteInPlace Makefile --replace /usr/local/bin $out/bin substituteInPlace Makefile --replace /usr/local/bin $out/bin

View file

@ -46,6 +46,13 @@ stdenv.mkDerivation rec {
ln -s libblas.so.${version} "$out/lib/libblas.so" 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 = { meta = {
description = "Basic Linear Algebra Subprograms"; description = "Basic Linear Algebra Subprograms";
license = stdenv.lib.licenses.publicDomain; license = stdenv.lib.licenses.publicDomain;