@@ -1,7 +1,6 @@
11{ fetchurl, mkDerivation, fetchpatch, stdenv, lib, pkg-config, autoreconfHook, wrapGAppsHook
22, libgpg-error, libassuan, qtbase, wrapQtAppsHook
3−, ncurses, gtk2, gcr
4−, libcap ? null, libsecret ? null
3+, ncurses, gtk2, gcr, libcap, libsecret
54, enabledFlavors ? [ "curses" "tty" "gtk2" "emacs" ]
65 ++ lib.optionals stdenv.isLinux [ "gnome3" ]
76 ++ lib.optionals (stdenv.hostPlatform.system != "aarch64-darwin") [ "qt" ]
@@ -52,7 +51,8 @@ pinentryMkDerivation rec {
5251
5352 nativeBuildInputs = [ pkg-config autoreconfHook ]
5453 ++ concatMap(f: flavorInfo.${f}.nativeBuildInputs or []) enabledFlavors;
55− buildInputs = [ libgpg-error libassuan libcap libsecret ]
54+ buildInputs = [ libgpg-error libassuan libsecret ]
55+ ++ lib.optional (!stdenv.isDarwin) libcap
5656 ++ concatMap(f: flavorInfo.${f}.buildInputs or []) enabledFlavors;
5757
5858 dontWrapGApps = true;