From 561eb736d06a38aae04a884c354bf272873bbc44 Mon Sep 17 00:00:00 2001 From: nikstur Date: Tue, 3 Sep 2024 15:50:33 +0200 Subject: [PATCH] botan: enable building statically --- pkgs/development/libraries/botan/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/botan/generic.nix b/pkgs/development/libraries/botan/generic.nix index 5b3b4f04b0f3..82082878df63 100644 --- a/pkgs/development/libraries/botan/generic.nix +++ b/pkgs/development/libraries/botan/generic.nix @@ -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 = ''