diff --git a/pkgs/tools/security/pinentry/default.nix b/pkgs/tools/security/pinentry/default.nix index 54a7887f79e8..dd17bdc4af74 100644 --- a/pkgs/tools/security/pinentry/default.nix +++ b/pkgs/tools/security/pinentry/default.nix @@ -6,7 +6,7 @@ let mkFlag = pfxTrue: pfxFalse: cond: name: "--${if cond then pfxTrue else pfxFalse}-${name}"; mkEnable = mkFlag "enable" "disable"; mkWith = mkFlag "with" "without"; - hasX = gtk != null || qt4 != null; + hasX = gtk2 != null || qt4 != null; in with stdenv.lib; stdenv.mkDerivation rec { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f28f8c8c6e60..db1d42c1614d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2363,7 +2363,8 @@ let philter = callPackage ../tools/networking/philter { }; pinentry = callPackage ../tools/security/pinentry { - qt4 = null; + gtk2 = !stdenv.isDarwin; + qt4 = stdenv.isDarwin; }; pius = callPackage ../tools/security/pius { };