petsc: fix darwin build
commitedef34445833e69ffcd0a9e1557bba3c61929b25
authorJosef Kemetmüller <josef.kemetmueller@gmail.com>
dateMon 12 Mar 2018, 00:20 (9 years ago)
parent5c25232
pkgs/development/libraries/science/math/petsc/default.nix+5
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
1616
1717 nativeBuildInputs = [ blas gfortran.cc.lib liblapack python ];
1818
19+ prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
20+ substituteInPlace config/install.py \
21+ --replace /usr/bin/install_name_tool install_name_tool
22+ '';
23+
1924 preConfigure = ''
2025 patchShebangs .
2126 configureFlagsArray=(