3
0
Fork 0
forked from mirrors/nixpkgs

qgpgme: init at 1.9.0

This commit is contained in:
Thomas Tuegel 2017-05-09 10:31:12 -05:00
parent 05ef92e53a
commit f5c00c43bb
No known key found for this signature in database
GPG key ID: 22CBF5249D4B4D59
2 changed files with 18 additions and 5 deletions

View file

@ -1,4 +1,7 @@
{ stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan, qt5 }:
{ stdenv, fetchurl, fetchpatch, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan
, qtbase ? null }:
let inherit (stdenv) lib system; in
stdenv.mkDerivation rec {
name = "gpgme-1.9.0";
@ -8,10 +11,20 @@ stdenv.mkDerivation rec {
sha256 = "1ssc0gs02r4fasabk7c6v6r865k2j02mpb5g1vkpbmzsigdzwa8v";
};
patches = [
(fetchpatch {
url = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff_plain;h=5d4f977dac542340c877fdd4b1304fa8f6e058e6";
sha256 = "0swpxzd3x3b6h2ry2py9j8l0xp3vdw8rixxhgfavzia5p869qyyx";
name = "qgpgme-format-security.patch";
})
];
outputs = [ "out" "dev" "info" ];
outputBin = "dev"; # gpgme-config; not so sure about gpgme-tool
propagatedBuildInputs = [ libgpgerror glib libassuan pth qt5.qtbase ];
propagatedBuildInputs =
[ libgpgerror glib libassuan pth ]
++ lib.optional (qtbase != null) qtbase;
nativeBuildInputs = [ pkgconfig gnupg ];
@ -19,11 +32,9 @@ stdenv.mkDerivation rec {
"--enable-fixed-path=${gnupg}/bin"
];
patches = [ ./gpgme_libsuffix.patch ];
# 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";
lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64";
meta = with stdenv.lib; {
homepage = "https://gnupg.org/software/gpgme/index.html";

View file

@ -9773,6 +9773,8 @@ with pkgs;
fcitx-qt5 = callPackage ../tools/inputmethods/fcitx/fcitx-qt5.nix { };
qgpgme = callPackage ../development/libraries/gpgme { };
grantlee = callPackage ../development/libraries/grantlee/5.x.nix { };
inherit (callPackage ../development/libraries/kirigami { })