2010-05-19 16:58:35 -04:00
|
|
|
{ fetchurl, stdenv, pkgconfig, glib
|
2014-04-14 16:11:34 -04:00
|
|
|
, useGtk ? !stdenv.isDarwin, gtk
|
2011-06-07 17:50:12 -04:00
|
|
|
, useNcurses ? true, ncurses
|
|
|
|
, useQt4 ? false, qt4 }:
|
2010-05-19 16:58:35 -04:00
|
|
|
|
2011-06-07 17:50:12 -04:00
|
|
|
assert useGtk || useNcurses || useQt4;
|
2008-04-23 15:42:10 -04:00
|
|
|
|
2008-12-08 16:22:20 -05:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-28 18:35:07 -04:00
|
|
|
name = "pinentry-0.8.4";
|
2008-12-08 16:22:20 -05:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-11-05 16:31:30 -05:00
|
|
|
url = "mirror://gnupg/pinentry/${name}.tar.bz2";
|
2014-10-28 18:35:07 -04:00
|
|
|
sha256 = "04jnlfncj9d5rg0j4gmsi2l1q9q7c6gjbvxfnfh3nx6b8szv779m";
|
2008-04-23 15:42:10 -04:00
|
|
|
};
|
|
|
|
|
2011-06-07 17:50:12 -04: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"]);
|
|
|
|
|
2012-12-28 13:20:09 -05:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2008-04-23 15:42:10 -04:00
|
|
|
|
2011-08-18 08:52:50 -04:00
|
|
|
meta = {
|
2012-11-05 16:31:30 -05:00
|
|
|
homepage = "http://gnupg.org/aegypten2/";
|
2008-12-08 16:22:20 -05:00
|
|
|
description = "GnuPG's interface to passphrase input";
|
2014-06-19 00:19:00 -04:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2008-12-08 16:22:20 -05:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2008-04-23 15:42:10 -04:00
|
|
|
};
|
|
|
|
}
|