Skip to content

Commit d7f29ba

Browse files
committed
botan: snake_case -> camelCase
Nixpkgs uses camelCase unless the package natively uses another casing format. Thus switch to camelCase to keep it consistent with Nixpkgs standards.
1 parent 3ed794a commit d7f29ba

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkgs/development/libraries/botan/default.nix

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
static ? stdenv.hostPlatform.isStatic, # generates static libraries *only*
1515

1616
# build ESDM RNG plugin
17-
with_esdm ? false,
17+
withEsdm ? false,
1818
# useful, but have to disable tests for now, as /dev/tpmrm0 is not accessible
19-
with_tpm2 ? false,
19+
withTpm2 ? false,
2020
policy ? null,
2121
}:
2222

@@ -69,13 +69,13 @@ let
6969
bzip2
7070
zlib
7171
]
72-
++ lib.optionals (stdenv.hostPlatform.isLinux && with_tpm2) [
72+
++ lib.optionals (stdenv.hostPlatform.isLinux && withTpm2) [
7373
tpm2-tss
7474
]
7575
++ lib.optionals (lib.versionAtLeast version "3.6.0") [
7676
jitterentropy
7777
]
78-
++ lib.optionals (lib.versionAtLeast version "3.7.0" && with_esdm) [
78+
++ lib.optionals (lib.versionAtLeast version "3.7.0" && withEsdm) [
7979
esdm
8080
];
8181

@@ -101,13 +101,13 @@ let
101101
++ lib.optionals stdenv.cc.isClang [
102102
"--cc=clang"
103103
]
104-
++ lib.optionals (stdenv.hostPlatform.isLinux && with_tpm2) [
104+
++ lib.optionals (stdenv.hostPlatform.isLinux && withTpm2) [
105105
"--with-tpm2"
106106
]
107107
++ lib.optionals (lib.versionAtLeast version "3.6.0") [
108108
"--enable-modules=jitter_rng"
109109
]
110-
++ lib.optionals (lib.versionAtLeast version "3.7.0" && with_esdm) [
110+
++ lib.optionals (lib.versionAtLeast version "3.7.0" && withEsdm) [
111111
"--enable-modules=esdm_rng"
112112
]
113113
++ lib.optionals (lib.versionAtLeast version "3.8.0" && policy != null) [

0 commit comments

Comments
 (0)