From 79cfdb2afeada882d5a6452b4d178b639bb00011 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 25 Mar 2015 16:10:00 -0700 Subject: [PATCH] pinentry: Slight refactoring --- pkgs/tools/security/pinentry/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/pinentry/default.nix b/pkgs/tools/security/pinentry/default.nix index 44ad0e05ca7..54a7887f79e 100644 --- a/pkgs/tools/security/pinentry/default.nix +++ b/pkgs/tools/security/pinentry/default.nix @@ -1,5 +1,5 @@ { fetchurl, stdenv, pkgconfig -, libcap ? null, ncurses ? null, gtk ? null, qt4 ? null +, libcap ? null, ncurses ? null, gtk2 ? null, qt4 ? null }: let @@ -17,13 +17,13 @@ stdenv.mkDerivation rec { sha256 = "1awhajq21hcjgqfxg9czaxg555gij4bba6axrwg8w6lfmc3ml14h"; }; - buildInputs = [ libcap gtk ncurses qt4 ]; + buildInputs = [ libcap gtk2 ncurses qt4 ]; configureFlags = [ (mkWith (libcap != null) "libcap") (mkEnable (ncurses != null) "pinentry-curses") (mkEnable true "pinentry-tty") - (mkEnable (gtk != null) "pinentry-gtk2") + (mkEnable (gtk2 != null) "pinentry-gtk2") (mkEnable (qt4 != null) "pinentry-qt4") ];