mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
f76c842706
I've rebuild all packages that depend on gpgme and everything seems fine so far (there are a few failures but the ones I've checked are unrelated to gpgme). Upstream release notes (Noteworthy changes in version 1.11.1): * Fixed build problems in the 1.11.0 release. * Added C++ interfaces which were planned for 1.11.0. The 1.11.0 release came with these changes: * New encryption API to support direct key specification including hidden recipients option and taking keys from a file. This also allows to enforce the use of a subkey. * New encryption flag for the new API to enforce the use of plain mail addresses (addr-spec). * The import API can now tell whether v3 keys are skipped. These old and basically broken keys are not anymore supported by GnuPG 2.1. * The decrypt and verify API will now return the MIME flag as specified by RFC-4880bis. * The offline mode now has an effect on gpg by disabling all network access. [#3831] * A failed OpenPGP verification how returns the fingerprint of the intended key if a recent gpg version was used for signature creation. * New tool gpgme-json as native messaging server for web browsers. As of now public key encryption and decryption is supported. Requires Libgpg-error 1.29. * New context flag "request-origin" which has an effect when used with GnuPG 2.2.6 or later. * New context flag "no-symkey-cache" which has an effect when used with GnuPG 2.2.7 or later. * New convenience constant GPGME_KEYLIST_MODE_LOCATE. * Improved the Python documentation. * Fixed a potential regression with GnuPG 2.2.6 or later. * Fixed a crash in the Python bindings on 32 bit platforms. [#3892] * Various minor fixes.
61 lines
1.9 KiB
Nix
61 lines
1.9 KiB
Nix
{ stdenv, fetchurl, fetchpatch, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan
|
|
, file, which
|
|
, autoreconfHook
|
|
, git
|
|
, texinfo5
|
|
, qtbase ? null
|
|
, withPython ? false, swig2 ? null, python ? null
|
|
}:
|
|
|
|
let inherit (stdenv) lib system; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gpgme-${version}";
|
|
version = "1.11.1";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnupg/gpgme/${name}.tar.bz2";
|
|
sha256 = "0vxx5xaag3rhp4g2arp5qm77gvz4kj0m3hnpvhkdvqyjfhbi26rd";
|
|
};
|
|
|
|
outputs = [ "out" "dev" "info" ];
|
|
outputBin = "dev"; # gpgme-config; not so sure about gpgme-tool
|
|
|
|
propagatedBuildInputs =
|
|
[ libgpgerror glib libassuan pth ]
|
|
++ lib.optional (qtbase != null) qtbase;
|
|
|
|
nativeBuildInputs = [ file pkgconfig gnupg autoreconfHook git texinfo5 ]
|
|
++ lib.optionals withPython [ python swig2 which ];
|
|
|
|
postPatch =''
|
|
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-fixed-path=${gnupg}/bin"
|
|
"--with-libgpg-error-prefix=${libgpgerror.dev}"
|
|
] ++ lib.optional withPython "--enable-languages=python";
|
|
|
|
NIX_CFLAGS_COMPILE =
|
|
# qgpgme uses Q_ASSERT which retains build inputs at runtime unless
|
|
# debugging is disabled
|
|
lib.optional (qtbase != null) "-DQT_NO_DEBUG"
|
|
# https://www.gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html
|
|
++ lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64";
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://gnupg.org/software/gpgme/index.html;
|
|
description = "Library for making GnuPG easier to use";
|
|
longDescription = ''
|
|
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
|
|
easier for applications. It provides a High-Level Crypto API for
|
|
encryption, decryption, signing, signature verification and key
|
|
management.
|
|
'';
|
|
license = with licenses; [ lgpl21Plus gpl3Plus ];
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fuuzetsu primeos ];
|
|
};
|
|
}
|