beamerpresenter: set compile time options explicitly

Compile time options are set explicitly for clarity.
Option USE_EXTERNAL_RENDERER can now be set using useExternalRenderer
variable. Option USE_QTPDF is disabled because it is only intended as a
backup if MuPDF and Poppler are both not available.
This commit is contained in:
Valentin Bruch 2022-09-06 01:28:49 +02:00
parent 1717df9134
commit 9a067292d3
No known key found for this signature in database
GPG Key ID: DD11316A0D8E585F

View File

@ -22,6 +22,7 @@
# choose renderer: mupdf or poppler or both (not recommended)
, usePoppler ? false
, useMupdf ? true
, useExternalRenderer ? false
}:
stdenv.mkDerivation rec {
@ -67,6 +68,9 @@ stdenv.mkDerivation rec {
"-DGIT_VERSION=OFF"
"-DUSE_POPPLER=${if usePoppler then "ON" else "OFF"}"
"-DUSE_MUPDF=${if useMupdf then "ON" else "OFF"}"
"-DUSE_QTPDF=OFF"
"-DUSE_MUPDF_THIRD=ON"
"-DUSE_EXTERNAL_RENDERER=${if useExternalRenderer then "ON" else "OFF"}"
"-DUSE_MUJS=OFF"
"-DUSE_GUMBO=ON"
"-DUSE_TRANSLATIONS=ON"