Merge pull request #36833 from knedlsepp/fix-petsc-on-darwin

petsc: fix darwin build
This commit is contained in:
Daiderd Jordan 2018-03-12 19:11:29 +01:00 committed by GitHub
commit a431a65a2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ blas gfortran.cc.lib liblapack python ];
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace config/install.py \
--replace /usr/bin/install_name_tool install_name_tool
'';
preConfigure = ''
patchShebangs .
configureFlagsArray=(