petsc: fix darwin build

This commit is contained in:
Josef Kemetmüller 2018-03-12 00:20:18 +01:00
parent 5c25232728
commit edef344458

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=(