diff --git a/pkgs/by-name/bo/botan3/package.nix b/pkgs/by-name/bo/botan3/package.nix index c44b6e9eb5db..9c438d69082d 100644 --- a/pkgs/by-name/bo/botan3/package.nix +++ b/pkgs/by-name/bo/botan3/package.nix @@ -18,6 +18,11 @@ # build ESDM RNG plugin withEsdm ? false, + # build with jitterentropy RNG plugin, + # default disabled, health tests may fail without + # configuration of OSR and related parameters + # in jitterentropy + withJitterentropy ? false, # useful, but have to disable tests for now, as /dev/tpmrm0 is not accessible withTpm2 ? false, policy ? null, @@ -55,7 +60,7 @@ let ''; in stdenv.mkDerivation (finalAttrs: { - version = "3.10.0"; + version = "3.11.0"; pname = "botan"; __structuredAttrs = true; @@ -77,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "randombit"; repo = "botan"; tag = finalAttrs.version; - hash = "sha256-E4kKk4ry3SMn2DbnUTVx22lcAWDxxbo8DLyixjr/S6A="; + hash = "sha256-jjrO43SItFi+6FrU9B45Y1GK+6V5ZIgaYaMHkgRh4IE="; }; nativeBuildInputs = [ @@ -92,7 +97,7 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals (stdenv.hostPlatform.isLinux && withTpm2) [ tpm2-tss ] - ++ lib.optionals (!stdenv.hostPlatform.isMinGW) [ + ++ lib.optionals (withJitterentropy && !stdenv.hostPlatform.isMinGW) [ jitterentropy ] ++ lib.optionals (withEsdm && !stdenv.hostPlatform.isMinGW) [ @@ -129,7 +134,7 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals (stdenv.hostPlatform.isLinux && withTpm2) [ "--with-tpm2" ] - ++ lib.optionals (!stdenv.hostPlatform.isMinGW) [ + ++ lib.optionals (withJitterentropy && !stdenv.hostPlatform.isMinGW) [ "--enable-modules=jitter_rng" ] ++ lib.optionals (withEsdm && !stdenv.hostPlatform.isMinGW) [ diff --git a/pkgs/by-name/rn/rnp/0001-fix-build-with-Botan-3.11.patch b/pkgs/by-name/rn/rnp/0001-fix-build-with-Botan-3.11.patch new file mode 100644 index 000000000000..0c8d26a42368 --- /dev/null +++ b/pkgs/by-name/rn/rnp/0001-fix-build-with-Botan-3.11.patch @@ -0,0 +1,25 @@ +From aa31e5d8af9295488bef3a559ec3756d5021501d Mon Sep 17 00:00:00 2001 +From: Markus Theil +Date: Mon, 16 Mar 2026 13:14:29 +0100 +Subject: [PATCH] fix build with Botan 3.11 + +Signed-off-by: Markus Theil +--- + src/lib/crypto/mem.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/lib/crypto/mem.cpp b/src/lib/crypto/mem.cpp +index 94d90f54..dbd2a143 100644 +--- a/src/lib/crypto/mem.cpp ++++ b/src/lib/crypto/mem.cpp +@@ -25,6 +25,7 @@ + */ + + #include ++#include + #include "mem.h" + #include "logging.h" + #include +-- +2.53.0 + diff --git a/pkgs/by-name/rn/rnp/package.nix b/pkgs/by-name/rn/rnp/package.nix index 360c0f591da4..c3eff4c93851 100644 --- a/pkgs/by-name/rn/rnp/package.nix +++ b/pkgs/by-name/rn/rnp/package.nix @@ -35,6 +35,8 @@ stdenv.mkDerivation (finalAttrs: { ]; patches = [ + # tracked at https://github.com/rnpgp/rnp/pull/2381 + ./0001-fix-build-with-Botan-3.11.patch ]; cmakeFlags = [ diff --git a/pkgs/development/python-modules/botan3/default.nix b/pkgs/development/python-modules/botan3/default.nix index 998d8e289b9b..634cd19c4036 100644 --- a/pkgs/development/python-modules/botan3/default.nix +++ b/pkgs/development/python-modules/botan3/default.nix @@ -34,7 +34,7 @@ buildPythonPackage rec { setuptools-scm ]; - sourceRoot = "Botan-${version}/src/python"; + sourceRoot = "source/src/python"; postPatch = '' # remove again, when https://github.com/randombit/botan/pull/5040 got