From c8c430ecf9cfbf868ddcadc5a74ed236ec82181b Mon Sep 17 00:00:00 2001 From: amesgen Date: Wed, 6 Nov 2024 01:55:03 +0100 Subject: [PATCH] keepassxc: prevent deadlock with just one core See https://github.com/keepassxreboot/keepassxc/issues/10391 An alternative would be to set virtualisation.cores = 2; in the keepassxc nixos test. --- pkgs/applications/misc/keepassxc/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/misc/keepassxc/default.nix b/pkgs/applications/misc/keepassxc/default.nix index b5b246526063..e548e2ee6b7e 100644 --- a/pkgs/applications/misc/keepassxc/default.nix +++ b/pkgs/applications/misc/keepassxc/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , qttools @@ -61,6 +62,12 @@ stdenv.mkDerivation rec { patches = [ ./darwin.patch + + # https://github.com/keepassxreboot/keepassxc/issues/10391 + (fetchpatch { + url = "https://github.com/keepassxreboot/keepassxc/commit/6a9ed210792ac60d9ed35cc702500e5ebbb95622.patch"; + hash = "sha256-CyaVMfJ0O+5vgvmwI6rYbf0G7ryKFcLv3p4b/D6Pzw8="; + }) ]; cmakeFlags = [