about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorDaniƫl de Kok <me@danieldk.eu>2020-07-18 20:45:39 +0200
committerGitHub <noreply@github.com>2020-07-18 20:45:39 +0200
commitcf059b32d98ec2642ddcf6eb9f9ae0ac445f2525 (patch)
treebcdb4a5c9d170ad7d90c22c70fd054a1f24bf2c4 /pkgs
parent60c9c3a2338edc81b7d5bd9d441f502cb510a536 (diff)
parent8a65fe8da6433092ff21b34f17473535e3c189da (diff)
Merge pull request #93428 from johnbcoughlin/petsc-install_name_tool
petsc: Fix install_name_tool patch
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/science/math/petsc/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/science/math/petsc/default.nix b/pkgs/development/libraries/science/math/petsc/default.nix
index a4d0850c77f79..dd3d6ab787fe4 100644
--- a/pkgs/development/libraries/science/math/petsc/default.nix
+++ b/pkgs/development/libraries/science/math/petsc/default.nix
@@ -1,4 +1,4 @@
-{ stdenv , fetchurl , blas , gfortran , lapack , python }:
+{ stdenv , darwin , fetchurl , blas , gfortran , lapack , python }:
 
 stdenv.mkDerivation rec {
   pname = "petsc";
@@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
       --replace /bin/sh /usr/bin/python
   '' + stdenv.lib.optionalString stdenv.isDarwin ''
     substituteInPlace config/install.py \
-      --replace /usr/bin/install_name_tool install_name_tool
+      --replace /usr/bin/install_name_tool ${darwin.cctools}/bin/install_name_tool
   '';
 
   preConfigure = ''