zbar: disable Qt assertions

Greatly decreases zbar-lib transitive closure size: assertion messages
contain paths to Qt header files, causing zbar-lib to depend on
qtbase-dev.

The Qt specific mkDerivation normally does this automatically, but we
can't use it here due to having only a small part of the project being
Qt related.
This commit is contained in:
Pierre Bourdon 2019-09-21 03:45:15 +02:00
parent 4445971025
commit 18b607b71b
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C

View File

@ -50,6 +50,9 @@ stdenv.mkDerivation rec {
qtx11extras
];
# Disable assertions which include -dev QtBase file paths.
NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ];
configureFlags = [
"--without-python"
] ++ (if enableDbus then [