Merge pull request #36833 from knedlsepp/fix-petsc-on-darwin
petsc: fix darwin build
This commit is contained in:
commit
a431a65a2c
1 changed files with 5 additions and 0 deletions
|
@ -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=(
|
||||
|
|
Loading…
Reference in a new issue