3
0
Fork 0
forked from mirrors/nixpkgs

openscad: add support for exporting PDFs

Add cairo to buildInputs for PDF export support. Without this, trying to
export using "File -> Export -> Export as PDF" leads to

  ERROR: Export to PDF format was not enabled when building the application.
  PDF export finished: /home/bf/Untitled.pdf

(The pdf file is 0 KiB -- broken.)

Fixes #192895.
This commit is contained in:
Bjørn Forsman 2022-09-25 18:59:45 +02:00
parent 4c4cf9979e
commit 855db46b9d

View file

@ -30,6 +30,7 @@
, wayland
, wayland-protocols
, qtwayland
, cairo
}:
mkDerivation rec {
@ -61,7 +62,7 @@ mkDerivation rec {
buildInputs = [
eigen boost glew opencsg cgal mpfr gmp glib
harfbuzz lib3mf libzip double-conversion freetype fontconfig
qtbase qtmultimedia qscintilla
qtbase qtmultimedia qscintilla cairo
] ++ lib.optionals stdenv.isLinux [ libGLU libGL wayland wayland-protocols qtwayland ]
++ lib.optional stdenv.isDarwin qtmacextras
++ lib.optional spacenavSupport libspnav