From 70a8bfbcd57ecbb0ec54963196dd8fea562e4b37 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 25 Mar 2015 16:19:02 -0700 Subject: [PATCH] pinentry: Fix for darwin --- pkgs/tools/security/pinentry/default.nix | 2 +- pkgs/top-level/all-packages.nix | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 { };