petsc: patch shebang in template string of example_template.py

This patch does not fix the shebang at the begining of the example_template.py file.
It only replaces the shebang in the template string of that file.
This commit is contained in:
qbisi
2025-03-18 20:48:17 +08:00
parent 9aa034835b
commit e3b2cfa523
+4
View File
@@ -11,6 +11,7 @@
zlib, # propagated by p4est but required by petsc
mpi, # generic mpi dependency
mpiCheckPhaseHook,
bash,
# Build options
petsc-optimized ? true,
@@ -99,6 +100,9 @@ stdenv.mkDerivation rec {
postPatch = ''
patchShebangs ./lib/petsc/bin
substituteInPlace config/example_template.py \
--replace-fail "/usr/bin/env bash" "${bash}/bin/bash"
'';
configureFlags =