keepassxc: fix pcsc for darwin

This commit is contained in:
Ryan Omasta
2026-05-16 03:22:49 -06:00
parent 007b340d73
commit 3f3adda4cc
2 changed files with 10 additions and 4 deletions
+10 -4
View File
@@ -30,7 +30,7 @@
withKeePassNetworking ? true,
withKeePassSSHAgent ? true,
withKeePassX11 ? true,
withKeePassYubiKey ? stdenv.hostPlatform.isLinux,
withKeePassYubiKey ? true,
nixosTests,
}:
@@ -61,9 +61,15 @@ stdenv.mkDerivation (finalAttrs: {
];
};
patches = [
./darwin.patch
];
patches = [ ./darwin-remove-macdeployqt.patch ];
# Upstream develops against a build of PCSC from Xcode.
# The types are incompatible with nixpkgs pcsclite.
# https://github.com/NixOS/nixpkgs/issues/520227
postPatch = ''
substituteInPlace src/keys/drivers/YubiKeyInterfacePCSC.cpp \
--replace-fail "typedef uint32_t RETVAL;" "typedef int32_t RETVAL;"
'';
cmakeFlags = [
(lib.cmakeFeature "KEEPASSXC_BUILD_TYPE" "Release")