Skip to content

Commit 208327d

Browse files
committedMar 24, 2025
petsc: change some inputs style from kebab-case to camelCase
1 parent 4246edc commit 208327d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
 

‎pkgs/by-name/pe/petsc/package.nix

+7-7
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
python3Packages,
1414

1515
# Build options
16-
petsc-optimized ? true,
17-
petsc-scalar-type ? "real",
18-
petsc-precision ? "double",
16+
debug ? false,
17+
scalarType ? "real",
18+
precision ? "double",
1919
mpiSupport ? true,
2020
fortranSupport ? true,
2121
pythonSupport ? false, # petsc python binding
@@ -162,16 +162,16 @@ stdenv.mkDerivation (finalAttrs: {
162162
[
163163
"--with-blas=1"
164164
"--with-lapack=1"
165-
"--with-scalar-type=${petsc-scalar-type}"
166-
"--with-precision=${petsc-precision}"
165+
"--with-scalar-type=${scalarType}"
166+
"--with-precision=${precision}"
167167
"--with-mpi=${if mpiSupport then "1" else "0"}"
168168
]
169169
++ lib.optionals mpiSupport [
170170
"--CC=mpicc"
171171
"--with-cxx=mpicxx"
172172
"--with-fc=mpif90"
173173
]
174-
++ lib.optionals petsc-optimized [
174+
++ lib.optionals (!debug) [
175175
"--with-debugging=0"
176176
"COPTFLAGS=-O3"
177177
"FOPTFLAGS=-O3"
@@ -194,7 +194,7 @@ stdenv.mkDerivation (finalAttrs: {
194194
++ lib.optional withFftw "--with-fftw=1"
195195
++ lib.optional withSuitesparse "--with-suitesparse=1";
196196

197-
hardeningDisable = lib.optionals (!petsc-optimized) [
197+
hardeningDisable = lib.optionals debug [
198198
"fortify"
199199
"fortify3"
200200
];

0 commit comments

Comments
 (0)
Failed to load comments.