2010-05-19 22:58:35 +02:00
|
|
|
{ fetchurl, stdenv, pkgconfig, glib
|
2011-06-07 23:50:12 +02:00
|
|
|
, useGtk ? true, gtk
|
|
|
|
, useNcurses ? true, ncurses
|
|
|
|
, useQt4 ? false, qt4 }:
|
2010-05-19 22:58:35 +02:00
|
|
|
|
2011-06-07 23:50:12 +02:00
|
|
|
assert useGtk || useNcurses || useQt4;
|
2008-04-23 21:42:10 +02:00
|
|
|
|
2008-12-08 22:22:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2010-05-19 22:58:35 +02:00
|
|
|
name = "pinentry-0.8.0";
|
2008-12-08 22:22:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnupg/pinentry/${name}.tar.gz";
|
2010-05-19 22:58:35 +02:00
|
|
|
sha256 = "06phs3gbs6gf0z9g28z3jgsw312dhhpdgzrx4hhps53xrbwpyv22";
|
2008-04-23 21:42:10 +02:00
|
|
|
};
|
|
|
|
|
2011-06-07 23:50:12 +02:00
|
|
|
buildInputs = let opt = stdenv.lib.optional; in []
|
|
|
|
++ opt useGtk glib
|
|
|
|
++ opt useGtk gtk
|
|
|
|
++ opt useNcurses ncurses
|
|
|
|
++ opt useQt4 qt4;
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-pinentry-gtk" "--disable-pinentry-qt" ]
|
|
|
|
++ (if useGtk || useQt4 then ["--with-x"] else ["--without-x"])
|
|
|
|
++ (if useGtk then ["--enable-pinentry-gtk2"] else ["--disable-pinentry-gtk"])
|
|
|
|
++ (if useQt4 then ["--enable-pinentry-qt4"] else ["--disable-pinentry-qt4"]);
|
|
|
|
|
|
|
|
buildNativeInputs = [ pkgconfig ];
|
2008-04-23 21:42:10 +02:00
|
|
|
|
2011-08-18 14:52:50 +02:00
|
|
|
meta = {
|
2008-12-08 22:22:20 +01:00
|
|
|
description = "GnuPG's interface to passphrase input";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Pinentry provides a console and a GTK+ GUI that allows users to
|
|
|
|
enter a passphrase when `gpg' or `gpg2' is run and needs it.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://gnupg.org/aegypten2/;
|
|
|
|
license = "GPLv2+";
|
2008-04-23 21:42:10 +02:00
|
|
|
};
|
|
|
|
}
|