keepassxc: fix build with botan 3.10

This commit is a preparational step for a
bump of the botan crypto library in a separate
PR. I was not able to compile without converting
a static to a dynamic cast. The fix will be included
in the next upstream version of keepassxc.

Signed-off-by: Markus Theil <theil.markus@gmail.com>
This commit is contained in:
Markus Theil
2025-11-11 13:11:12 +01:00
parent d9954f901e
commit c9936d3a05
+11 -1
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
cmake,
libsForQt5,
@@ -54,7 +55,16 @@ stdenv.mkDerivation (finalAttrs: {
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-rpath ${libargon2}/lib";
patches = [ ./darwin.patch ];
patches = [
./darwin.patch
# Fixes a static_cast related compilation issue by converting to dynamic cast.
# Will be included in next release > 2.7.10 and can be dropped on bump.
(fetchpatch2 {
name = "fix-botan-3.10.patch";
url = "https://github.com/keepassxreboot/keepassxc/commit/fedcbf60c5c0dc7c3602c49a984d53a45c154c73.patch";
hash = "sha256-UntT7/LDjslyqHqt5gJjzC/vMw/RVZLNj2ZxzBPL9xI=";
})
];
cmakeFlags = [
(lib.cmakeFeature "KEEPASSXC_BUILD_TYPE" "Release")