2025-02-02 15:05:08 +00:00
|
|
|
{
|
|
|
|
appimageTools,
|
|
|
|
fetchurl,
|
|
|
|
makeDesktopItem,
|
|
|
|
lib,
|
|
|
|
xorg,
|
2025-08-10 13:56:28 +02:00
|
|
|
wayland,
|
|
|
|
wayland-protocols,
|
2025-02-02 15:05:08 +00:00
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "LycheeSlicer";
|
2025-08-04 05:18:09 +00:00
|
|
|
version = "7.4.2";
|
2025-02-02 15:05:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://mango-lychee.nyc3.cdn.digitaloceanspaces.com/LycheeSlicer-${version}.AppImage";
|
2025-08-04 05:18:09 +00:00
|
|
|
hash = "sha256-RTLlNB6eiesXZayC69hpnXQsAgmPuaJTC+18Q6KzAP0=";
|
2025-02-02 15:05:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "Lychee Slicer";
|
|
|
|
genericName = "Resin Slicer";
|
|
|
|
comment = "All-in-one 3D slicer for Resin and Filament";
|
2025-08-10 13:55:44 +02:00
|
|
|
desktopName = "LycheeSlicer";
|
2025-02-02 15:05:08 +00:00
|
|
|
noDisplay = false;
|
|
|
|
exec = "lychee";
|
|
|
|
terminal = false;
|
|
|
|
mimeTypes = [ "model/stl" ];
|
|
|
|
categories = [ "Graphics" ];
|
|
|
|
keywords = [
|
|
|
|
"STL"
|
|
|
|
"Slicer"
|
|
|
|
"Printing"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
install -Dm444 -t $out/share/applications ${desktopItem}/share/applications/*
|
|
|
|
'';
|
|
|
|
|
2025-08-10 13:55:44 +02:00
|
|
|
extraPkgs = _: [
|
2025-02-02 15:05:08 +00:00
|
|
|
xorg.libxshmfence
|
2025-08-10 13:56:28 +02:00
|
|
|
wayland
|
|
|
|
wayland-protocols
|
2025-02-02 15:05:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "All-in-one 3D slicer for resin and FDM printers";
|
|
|
|
homepage = "https://lychee.mango3d.io/";
|
|
|
|
license = lib.licenses.unfree;
|
2025-08-10 13:56:28 +02:00
|
|
|
maintainers = with lib.maintainers; [
|
2025-08-10 13:54:23 +02:00
|
|
|
tarinaky
|
|
|
|
ZachDavies
|
|
|
|
];
|
2025-02-02 15:05:08 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2025-08-10 13:55:44 +02:00
|
|
|
mainProgram = "LycheeSlicer";
|
2025-02-02 15:05:08 +00:00
|
|
|
};
|
|
|
|
}
|