From 18b607b71b061e4468d1e089b70e12db50a51d5a Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 21 Sep 2019 03:45:15 +0200 Subject: 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. --- pkgs/tools/graphics/zbar/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs') diff --git a/pkgs/tools/graphics/zbar/default.nix b/pkgs/tools/graphics/zbar/default.nix index cb5ea25211cd..6423a84badc6 100644 --- a/pkgs/tools/graphics/zbar/default.nix +++ b/pkgs/tools/graphics/zbar/default.nix @@ -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 [ -- cgit 1.4.1