mslicer: fix so the mslicer GUI loads
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
# `result/bin/mslicer` fails with:
|
||||
# called `Result::unwrap()` on an `Err` value: Wgpu(RequestDeviceError(RequestDeviceError { inner: Core(UnsupportedFeature(Features(POLYGON_MODE_LINE))) }))
|
||||
{
|
||||
cairo,
|
||||
fetchFromGitHub,
|
||||
gtk3,
|
||||
lib,
|
||||
libglvnd,
|
||||
libgbm,
|
||||
libxkbcommon,
|
||||
fontconfig,
|
||||
freetype,
|
||||
pango,
|
||||
pkg-config,
|
||||
rustPlatform,
|
||||
vulkan-headers,
|
||||
vulkan-loader,
|
||||
wayland,
|
||||
wayland-scanner,
|
||||
wayland-protocols,
|
||||
wrapGAppsHook3,
|
||||
xorg,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -32,12 +39,26 @@ rustPlatform.buildRustPackage rec {
|
||||
pkg-config
|
||||
wayland-scanner
|
||||
# wrapGAppsHook3 #< doesn't fix `POLYGON_MODE_LINE`
|
||||
# rustPlatform.bindgenHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
gtk3
|
||||
libglvnd
|
||||
libgbm
|
||||
libxkbcommon
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libxcb
|
||||
xorg.libXrender
|
||||
fontconfig
|
||||
freetype
|
||||
# openssl
|
||||
pango
|
||||
vulkan-headers
|
||||
vulkan-loader
|
||||
wayland
|
||||
wayland-protocols
|
||||
];
|
||||
@@ -59,11 +80,15 @@ rustPlatform.buildRustPackage rec {
|
||||
"--push-state"
|
||||
"--no-as-needed"
|
||||
"-lEGL"
|
||||
"-lvulkan"
|
||||
"-lwayland-client"
|
||||
"-lxkbcommon"
|
||||
"--pop-state"
|
||||
];
|
||||
|
||||
# strictDeps = true; #< TODO
|
||||
doCheck = false; #< TODO (while i iterate)
|
||||
|
||||
meta = with lib; {
|
||||
description = "An experimental open source slicer for masked stereolithography (resin) printers.";
|
||||
homepage = "https://connorcode.com/projects/mslicer";
|
||||
|
Reference in New Issue
Block a user