qgpgme: build with -DQT_NO_DEBUG

qgpgme uses Q_ASSERT which causes build inputs to be retained unnecessarily at
runtime unless debugging is disabled.
This commit is contained in:
Thomas Tuegel 2017-05-23 09:51:38 -05:00
parent 22b6a93fad
commit 5ba0dd1ad7
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -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;