From d3a5cca1a17c9ac79c9b132e10121614c0916f09 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Wed, 23 Apr 2008 19:42:10 +0000 Subject: [PATCH] Added pinentry (now needed to generate gnupg2 keys) There are different versions (qt/gtk and console) Shall we strive for a solution working out of the box (see comments in gnupg2) I think a gui pinentry is more suitable because it also works invoked from guil email clients svn path=/nixpkgs/trunk/; revision=11695 --- pkgs/tools/misc/pinentry/default.nix | 17 +++++++++++++++++ pkgs/tools/security/gnupg2/default.nix | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/pinentry/default.nix diff --git a/pkgs/tools/misc/pinentry/default.nix b/pkgs/tools/misc/pinentry/default.nix new file mode 100644 index 000000000000..4ee840069752 --- /dev/null +++ b/pkgs/tools/misc/pinentry/default.nix @@ -0,0 +1,17 @@ +args: +args.stdenv.mkDerivation { + name = "pinentry-0.7.2"; + + src = args.fetchurl { + url = http://gentoo.chem.wisc.edu/gentoo/distfiles/pinentry-0.7.2.tar.gz; + sha256 = "0s6n5n4bxg95rmwa3mw3r49dabf8yh6fkpfi8mbl7i85dgpibnzv"; + }; + + buildInputs =(with args; [glib pkgconfig x11 gtk]); + + meta = { + description = "input interface for passwords needed by gnupg"; + homepage = "don't know, gentoo lists http://www.gnupg.org/aegypten/"; + license = "GPL2"; + }; +} diff --git a/pkgs/tools/security/gnupg2/default.nix b/pkgs/tools/security/gnupg2/default.nix index f6e22bec51d4..b5025a0a56bb 100644 --- a/pkgs/tools/security/gnupg2/default.nix +++ b/pkgs/tools/security/gnupg2/default.nix @@ -1,4 +1,8 @@ -args: with args; +# remmeber to +# echo "pinentry-program `which pinentry-gtk-2`" >> ~/.gnupg/gpg-agent.conf +# and install pinentry as well + +args: with args stdenv.mkDerivation { name = "gnupg-2.0.8"; src = fetchurl {