Configure gnupg to use pinentry by default.
This makes gnupg much more usable out of the box.
This commit is contained in:
parent
e2331b52cd
commit
5302ae0789
@ -1,8 +1,6 @@
|
|||||||
# Remember to install Pinentry and
|
|
||||||
# 'echo "pinentry-program `which pinentry-gtk-2`" >> ~/.gnupg/gpg-agent.conf'.
|
|
||||||
|
|
||||||
{ fetchurl, stdenv, readline, zlib, libgpgerror, pth, libgcrypt, libassuan
|
{ fetchurl, stdenv, readline, zlib, libgpgerror, pth, libgcrypt, libassuan
|
||||||
, libksba, coreutils, libiconvOrEmpty
|
, libksba, coreutils, libiconvOrEmpty
|
||||||
|
, pinentry
|
||||||
, useLdap ? true, openldap ? null, useBzip2 ? true, bzip2 ? null
|
, useLdap ? true, openldap ? null, useBzip2 ? true, bzip2 ? null
|
||||||
, useUsb ? true, libusb ? null, useCurl ? true, curl ? null
|
, useUsb ? true, libusb ? null, useCurl ? true, curl ? null
|
||||||
}:
|
}:
|
||||||
@ -33,6 +31,10 @@ stdenv.mkDerivation rec {
|
|||||||
find . -name pcsc-wrapper.c | xargs sed -i 's/typedef unsinged int pcsc_dword_t/typedef unsigned int pcsc_dword_t/'
|
find . -name pcsc-wrapper.c | xargs sed -i 's/typedef unsinged int pcsc_dword_t/typedef unsigned int pcsc_dword_t/'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
configureFlags =
|
||||||
|
if pinentry != null then "--with-pinentry-pgm=${pinentry}/bin/pinentry"
|
||||||
|
else "";
|
||||||
|
|
||||||
checkPhase="GNUPGHOME=`pwd` ./agent/gpg-agent --daemon make check";
|
checkPhase="GNUPGHOME=`pwd` ./agent/gpg-agent --daemon make check";
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user