keepassxc: fix build with botan 3.10 (#460646)

This commit is contained in:
Fernando Rodrigues
2025-11-11 20:04:47 +00:00
committed by GitHub
+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")