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,
|
fetchFromGitHub,
|
||||||
|
gtk3,
|
||||||
lib,
|
lib,
|
||||||
libglvnd,
|
libglvnd,
|
||||||
|
libgbm,
|
||||||
libxkbcommon,
|
libxkbcommon,
|
||||||
|
fontconfig,
|
||||||
|
freetype,
|
||||||
|
pango,
|
||||||
pkg-config,
|
pkg-config,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
vulkan-headers,
|
||||||
|
vulkan-loader,
|
||||||
wayland,
|
wayland,
|
||||||
wayland-scanner,
|
wayland-scanner,
|
||||||
wayland-protocols,
|
wayland-protocols,
|
||||||
wrapGAppsHook3,
|
wrapGAppsHook3,
|
||||||
|
xorg,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
@@ -32,12 +39,26 @@ rustPlatform.buildRustPackage rec {
|
|||||||
pkg-config
|
pkg-config
|
||||||
wayland-scanner
|
wayland-scanner
|
||||||
# wrapGAppsHook3 #< doesn't fix `POLYGON_MODE_LINE`
|
# wrapGAppsHook3 #< doesn't fix `POLYGON_MODE_LINE`
|
||||||
|
# rustPlatform.bindgenHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
cairo
|
||||||
|
gtk3
|
||||||
libglvnd
|
libglvnd
|
||||||
|
libgbm
|
||||||
libxkbcommon
|
libxkbcommon
|
||||||
|
xorg.libX11
|
||||||
|
xorg.libXcursor
|
||||||
|
xorg.libXi
|
||||||
|
xorg.libxcb
|
||||||
|
xorg.libXrender
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
# openssl
|
# openssl
|
||||||
|
pango
|
||||||
|
vulkan-headers
|
||||||
|
vulkan-loader
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
];
|
];
|
||||||
@@ -59,11 +80,15 @@ rustPlatform.buildRustPackage rec {
|
|||||||
"--push-state"
|
"--push-state"
|
||||||
"--no-as-needed"
|
"--no-as-needed"
|
||||||
"-lEGL"
|
"-lEGL"
|
||||||
|
"-lvulkan"
|
||||||
"-lwayland-client"
|
"-lwayland-client"
|
||||||
"-lxkbcommon"
|
"-lxkbcommon"
|
||||||
"--pop-state"
|
"--pop-state"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# strictDeps = true; #< TODO
|
||||||
|
doCheck = false; #< TODO (while i iterate)
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An experimental open source slicer for masked stereolithography (resin) printers.";
|
description = "An experimental open source slicer for masked stereolithography (resin) printers.";
|
||||||
homepage = "https://connorcode.com/projects/mslicer";
|
homepage = "https://connorcode.com/projects/mslicer";
|
||||||
|
Reference in New Issue
Block a user