Skip to content

Commit

Permalink
gpgme: 1.8.0 -> 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
primeos committed Apr 1, 2017
1 parent c7e885f commit 40d1718
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
32 changes: 14 additions & 18 deletions pkgs/development/libraries/gpgme/default.nix
@@ -1,19 +1,11 @@
{ stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan
, useGnupg1 ? false, gnupg1 ? null }:
{ stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan }:

assert useGnupg1 -> gnupg1 != null;
assert !useGnupg1 -> gnupg != null;

let
gpgStorePath = if useGnupg1 then gnupg1 else gnupg;
gpgProgram = if useGnupg1 then "gpg" else "gpg2";
in
stdenv.mkDerivation rec {
name = "gpgme-1.8.0";
name = "gpgme-1.9.0";

src = fetchurl {
url = "mirror://gnupg/gpgme/${name}.tar.bz2";
sha256 = "0csx3qnycwm0n90ql6gs65if5xi4gqyzzy21fxs2xqicghjrfq2r";
sha256 = "1ssc0gs02r4fasabk7c6v6r865k2j02mpb5g1vkpbmzsigdzwa8v";
};

outputs = [ "out" "dev" "info" ];
Expand All @@ -24,20 +16,24 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig gnupg ];

configureFlags = [
"--enable-fixed-path=${gpgStorePath}/bin"
"--enable-fixed-path=${gnupg}/bin"
];

# https://www.gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html
NIX_CFLAGS_COMPILE =
with stdenv; lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64";

AM_CXXFLAGS =
with stdenv; lib.optional (isDarwin) "-D_POSIX_C_SOURCE=200809L";

meta = with stdenv.lib; {
homepage = "http://www.gnupg.org/related_software/gpgme";
homepage = "https://gnupg.org/software/gpgme/index.html";
description = "Library for making GnuPG easier to use";
license = licenses.gpl2;
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 = [ maintainers.fuuzetsu ];
maintainers = with maintainers; [ fuuzetsu primeos ];
};
}
4 changes: 1 addition & 3 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -7709,9 +7709,7 @@ with pkgs;

gpac = callPackage ../applications/video/gpac { };

gpgme = callPackage ../development/libraries/gpgme {
gnupg1 = gnupg1orig;
};
gpgme = callPackage ../development/libraries/gpgme { };

pgpdump = callPackage ../tools/security/pgpdump { };

Expand Down

0 comments on commit 40d1718

Please sign in to comment.