diff --git a/pkgs/development/libraries/poppler/default.nix b/pkgs/development/libraries/poppler/default.nix index ebcdcc2b3efd..bb3458d62dd4 100644 --- a/pkgs/development/libraries/poppler/default.nix +++ b/pkgs/development/libraries/poppler/default.nix @@ -29,11 +29,14 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig libiconv ] ++ libintlOrEmpty; + NIX_CFLAGS_COMPILE = [ "-DQT_NO_DEBUG" ]; + configureFlags = with lib; [ "--enable-xpdf-headers" "--enable-libcurl" "--enable-zlib" + "--enable-build-type=release" ] ++ optionals minimal [ "--disable-poppler-glib" "--disable-poppler-cpp" ] ++ optional (!utils) "--disable-utils";