mslicer: init at 0.2.1

Co-authored-by: awwpotato <153149335+awwpotato@users.noreply.github.com>

Co-authored-by: Nurali Aslanbekov <ilarvne@proton.me>
This commit is contained in:
Colin
2025-04-17 16:15:37 +00:00
co-authored by Nurali Aslanbekov
parent 6c3eb3bc7b
commit 6655ee4f8a
+55
View File
@@ -0,0 +1,55 @@
{
fetchFromGitHub,
lib,
libglvnd,
libxkbcommon,
nix-update-script,
rustPlatform,
vulkan-loader,
wayland,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mslicer";
version = "0.2.1";
src = fetchFromGitHub {
owner = "connorslade";
repo = "mslicer";
rev = finalAttrs.version;
hash = "sha256-VgbHFUQpxlQcYh3TNyw1IX7vyaWrHRxl4Oe5jake9Qg=";
};
cargoHash = "sha256-Bs/mQTMEQxRvKK9ibIAf4KLv9jzGv3hnduXFYEdjljc=";
buildInputs = [
libglvnd
libxkbcommon
vulkan-loader
wayland
];
# Force linking to libEGL, which is always dlopen()ed, and to
# libwayland-client & libxkbcommon, which is dlopen()ed based on the
# winit backend.
NIX_LDFLAGS = [
"--no-as-needed"
"-lEGL"
"-lvulkan"
"-lwayland-client"
"-lxkbcommon"
];
strictDeps = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Experimental open source slicer for masked stereolithography (resin) printers";
homepage = "https://connorcode.com/projects/mslicer";
changelog = "https://github.com/connorslade/mslicer/releases/tag/${finalAttrs.version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ colinsane ];
platforms = lib.platforms.linux;
};
})