mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
Merge pull request #93428 from johnbcoughlin/petsc-install_name_tool
petsc: Fix install_name_tool patch
This commit is contained in:
commit
cf059b32d9
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue