2009-01-12 21:20:18 +01:00
|
|
|
# Remember to install Pinentry and
|
|
|
|
# 'echo "pinentry-program `which pinentry-gtk-2`" >> ~/.gnupg/gpg-agent.conf'.
|
|
|
|
|
|
|
|
{ fetchurl, stdenv, readline, openldap, bzip2, zlib, libgpgerror
|
|
|
|
, pth, libgcrypt, libassuan, libksba, libusb, curl }:
|
2008-04-23 21:42:10 +02:00
|
|
|
|
2008-09-09 11:06:01 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2009-07-02 00:06:53 +02:00
|
|
|
name = "gnupg-2.0.12";
|
2008-09-09 11:06:01 +02:00
|
|
|
|
2008-01-28 20:45:57 +01:00
|
|
|
src = fetchurl {
|
2008-09-09 11:06:01 +02:00
|
|
|
url = "mirror://gnupg/gnupg/${name}.tar.bz2";
|
2009-07-02 00:06:53 +02:00
|
|
|
sha256 = "1klw3m32s6d81qkslin4pibb2f84yz8l6n6fkwfdxyhrql2f2cwn";
|
2008-01-28 20:45:57 +01:00
|
|
|
};
|
2008-09-09 11:06:01 +02:00
|
|
|
|
2008-01-28 20:45:57 +01:00
|
|
|
buildInputs = [ readline openldap bzip2 zlib libgpgerror pth libgcrypt
|
|
|
|
libassuan libksba libusb curl ];
|
|
|
|
|
2009-07-02 00:06:53 +02:00
|
|
|
patchPhase = ''
|
|
|
|
for file in tests/pkits/*
|
|
|
|
do
|
|
|
|
if [ -f "$file" ]
|
|
|
|
then
|
|
|
|
sed -i "$file" -es'|/bin/pwd|pwd|g'
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2009-01-12 21:20:18 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2008-01-28 20:45:57 +01:00
|
|
|
meta = {
|
2009-01-12 21:20:18 +01:00
|
|
|
description = "GNU Privacy Guard (GnuPG), GNU Project's implementation of the OpenPGP standard";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GnuPG is the GNU project's complete and free implementation of
|
|
|
|
the OpenPGP standard as defined by RFC4880. GnuPG allows to
|
|
|
|
encrypt and sign your data and communication, features a
|
|
|
|
versatile key managment system as well as access modules for all
|
|
|
|
kind of public key directories. GnuPG, also known as GPG, is a
|
|
|
|
command line tool with features for easy integration with other
|
|
|
|
applications. A wealth of frontend applications and libraries
|
|
|
|
are available. Version 2 of GnuPG also provides support for
|
|
|
|
S/MIME.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = http://gnupg.org/;
|
2009-03-04 14:41:52 +01:00
|
|
|
|
|
|
|
license = "GPLv3+";
|
2009-07-02 00:06:53 +02:00
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2008-01-28 20:45:57 +01:00
|
|
|
};
|
|
|
|
}
|