summary refs log tree commit diff
path: root/pkgs/development/libraries/gpgme
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@mailbox.org>2017-05-23 09:51:38 -0500
committerThomas Tuegel <ttuegel@mailbox.org>2017-08-21 06:51:32 -0500
commit5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2 (patch)
treeba82b6be2805bb5c6ee4130d2d16efd0aa807f69 /pkgs/development/libraries/gpgme
parent22b6a93fadb9cb6aebc8bf0aecdfdc8ae60ae155 (diff)
downloadnixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar.gz
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar.bz2
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar.lz
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar.xz
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.tar.zst
nixpkgs-5ba0dd1ad7aa54b2d695d4c91251c73b7d2551b2.zip
qgpgme: build with -DQT_NO_DEBUG
qgpgme uses Q_ASSERT which causes build inputs to be retained unnecessarily at
runtime unless debugging is disabled.
Diffstat (limited to 'pkgs/development/libraries/gpgme')
-rw-r--r--pkgs/development/libraries/gpgme/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix
index aae24587302..9773ef8b896 100644
--- a/pkgs/development/libraries/gpgme/default.nix
+++ b/pkgs/development/libraries/gpgme/default.nix
@@ -32,9 +32,12 @@ stdenv.mkDerivation rec {
     "--enable-fixed-path=${gnupg}/bin"
   ];
 
-  # https://www.gnupg.org/documentation/manuals/gpgme/Largefile-Support-_0028LFS_0029.html
   NIX_CFLAGS_COMPILE =
-    lib.optional (system == "i686-linux") "-D_FILE_OFFSET_BITS=64";
+    # 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;