diff options
Diffstat (limited to 'pkgs/development/libraries/botan/default.nix')
-rw-r--r-- | pkgs/development/libraries/botan/default.nix | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/development/libraries/botan/default.nix b/pkgs/development/libraries/botan/default.nix index 81c38c2d982b..8d11ee2b7937 100644 --- a/pkgs/development/libraries/botan/default.nix +++ b/pkgs/development/libraries/botan/default.nix @@ -6,6 +6,7 @@ docutils, bzip2, zlib, + jitterentropy, darwin, static ? stdenv.hostPlatform.isStatic, # generates static libraries *only* }: @@ -50,13 +51,16 @@ let bzip2 zlib ] - ++ lib.optionals stdenv.isDarwin ( + ++ lib.optionals stdenv.hostPlatform.isDarwin ( with darwin.apple_sdk.frameworks; [ CoreServices Security ] - ); + ) + ++ lib.optionals (lib.versionAtLeast version "3.6.0") [ + jitterentropy + ]; buildTargets = [ "cli" ] @@ -81,6 +85,9 @@ let ] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "--cpu=aarch64" + ] + ++ lib.optionals (lib.versionAtLeast version "3.6.0") [ + "--enable-modules=jitter_rng" ]; configurePhase = '' @@ -117,8 +124,8 @@ let in { botan3 = common { - version = "3.5.0"; - hash = "sha256-Z+ja4cokaNkN5OYByH1fMf9JKzjoq4vL0C3fcQTtip8="; + version = "3.6.1"; + hash = "sha256-fLhXXYjSMsdxdHadf54ku0REQWBYWYbuvWbnScuakIk="; # this patch fixes build errors on MacOS with SDK 10.12, recheck to remove this again patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./botan3-macos.patch ]; }; |