Unverified Commit 22d7cb34 authored by Atemu's avatar Atemu Committed by GitHub
Browse files

orca-slicer: add nanum font dependency (#500649)

parents a2ce1387 2a346f58
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -28,7 +28,9 @@
  hicolor-icon-theme,
  libsecret,
  libpng,
  makeFontsConf,
  mpfr,
  nanum,
  nlopt,
  opencascade-occt_7_6,
  openvdb,
@@ -59,6 +61,12 @@ let
          "--enable-secretstore"
        ];
      });

  # Workaround for crash due to missing font
  # https://github.com/OrcaSlicer/OrcaSlicer/issues/11641
  fontsConf = makeFontsConf {
    fontDirectories = [ nanum ];
  };
in
stdenv.mkDerivation (finalAttrs: {
  pname = "orca-slicer";
@@ -219,6 +227,7 @@ stdenv.mkDerivation (finalAttrs: {
        ]
      }"
      --set WEBKIT_DISABLE_COMPOSITING_MODE 1
      --set FONTCONFIG_FILE "${fontsConf}"
      ${lib.optionalString withNvidiaGLWorkaround ''
        --set __GLX_VENDOR_LIBRARY_NAME mesa
        --set __EGL_VENDOR_LIBRARY_FILENAMES /run/opengl-driver/share/glvnd/egl_vendor.d/50_mesa.json