Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
libglvnd,
|
|
libxkbcommon,
|
|
nix-update-script,
|
|
rustPlatform,
|
|
vulkan-loader,
|
|
wayland,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "mslicer";
|
|
version = "0.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "connorslade";
|
|
repo = "mslicer";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-37EOdMM/stMKwTTpQ0LWYZVUw2Y3CkoEGHWNthyQnSA=";
|
|
};
|
|
|
|
cargoHash = "sha256-nkNoyoMqcFLCuQ8TqRn4e5L2zbgjw615HIAuLVqg0vQ=";
|
|
|
|
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;
|
|
};
|
|
})
|