botan: enable building statically

This commit is contained in:
nikstur 2024-09-03 15:50:33 +02:00
parent 170e333644
commit 561eb736d0

View File

@ -9,6 +9,7 @@
, knownVulnerabilities ? [ ]
, CoreServices ? null
, Security ? null
, static ? stdenv.hostPlatform.isStatic # generates static libraries *only*
, ...
}:
@ -43,6 +44,9 @@ stdenv.mkDerivation (finalAttrs: {
"--cc=clang"
] ++ lib.optionals stdenv.hostPlatform.isAarch64 [
"--cpu=aarch64"
] ++ lib.optionals static [
"--enable-static-library"
"--disable-shared-library"
];
configurePhase = ''