mslicer: remove unused dependencies

This commit is contained in:
2025-03-12 16:17:03 +00:00
parent e264c8dd21
commit 5b718799a5

View File

@@ -1,23 +1,23 @@
{
cairo,
# cairo,
fetchFromGitHub,
gtk3,
# gtk3,
lib,
libglvnd,
libgbm,
# libgbm,
libxkbcommon,
fontconfig,
freetype,
pango,
# fontconfig,
# freetype,
# pango,
pkg-config,
rustPlatform,
vulkan-headers,
# vulkan-headers,
vulkan-loader,
wayland,
wayland-scanner,
wayland-protocols,
wrapGAppsHook3,
xorg,
# wrapGAppsHook3,
# xorg,
}:
rustPlatform.buildRustPackage rec {
@@ -34,33 +34,25 @@ rustPlatform.buildRustPackage rec {
cargoHash = "sha256-mRbEwxR6bMkybxe7H1dX4Qa1elGiw/lSSz9sSTtp1zw=";
useFetchCargoVendor = true;
nativeBuildInputs = [
# cmake
pkg-config
wayland-scanner
# wrapGAppsHook3 #< doesn't fix `POLYGON_MODE_LINE`
# rustPlatform.bindgenHook
];
buildInputs = [
cairo
gtk3
# cairo
# gtk3
libglvnd
libgbm
# libgbm
libxkbcommon
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libxcb
xorg.libXrender
fontconfig
freetype
# xorg.libX11
# xorg.libXcursor
# xorg.libXi
# xorg.libxcb
# xorg.libXrender
# fontconfig
# freetype
# openssl
pango
vulkan-headers
# pango
# vulkan-headers
vulkan-loader
wayland
wayland-protocols
# wayland-protocols
];
# from pkgs/by-name/al/alvr/package.nix, to get it to actually link against wayland
@@ -86,8 +78,21 @@ rustPlatform.buildRustPackage rec {
"--pop-state"
];
# strictDeps = true; #< TODO
doCheck = false; #< TODO (while i iterate)
doInstallCheck = true;
installCheckPhase = ''
runHook preInstallCheck
# spot-check the binaries
$out/bin/goo_format --help
# these other binaries can't be invoked w/ interactivity or real data:
test -x $out/bin/mslicer
test -x $out/bin/remote_send
test -x $out/bin/slicer
runHook postInstallCheck
'';
strictDeps = true;
meta = with lib; {
description = "An experimental open source slicer for masked stereolithography (resin) printers.";