Unverified Commit 9d913eec authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

ipe: optional support for qvoronoi (#361897)

parents 44f4124a 7de8722d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -15,9 +15,11 @@
, qtbase
, qtsvg
, texliveSmall
, qhull
, wrapQtAppsHook
, zlib
, withTeXLive ? true
, withQVoronoi ? false
, buildPackages
}:

@@ -48,6 +50,8 @@ stdenv.mkDerivation rec {
    zlib
  ] ++ (lib.optionals withTeXLive [
    texliveSmall
  ]) ++ (lib.optionals withQVoronoi [
    qhull
  ]);

  makeFlags = [
@@ -56,7 +60,10 @@ stdenv.mkDerivation rec {
    "LUA_PACKAGE=lua"
    "MOC=${buildPackages.qt6Packages.qtbase}/libexec/moc"
    "IPE_NO_SPELLCHECK=1" # qtSpell is not yet packaged
  ];
  ] ++ (lib.optionals withQVoronoi [
    "IPEQVORONOI=1"
    "QHULL_CFLAGS=-I${qhull}/include/libqhull_r"
  ]);

  qtWrapperArgs = lib.optionals withTeXLive [ "--prefix PATH : ${lib.makeBinPath [ texliveSmall ]}" ];