Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.3 KiB
Nix
Raw Permalink Normal View History

2025-02-02 15:05:08 +00:00
{
appimageTools,
fetchurl,
makeDesktopItem,
lib,
xorg,
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";
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/*
'';
extraPkgs = _: [
2025-02-02 15:05:08 +00:00
xorg.libxshmfence
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;
maintainers = with lib.maintainers; [
tarinaky
ZachDavies
];
2025-02-02 15:05:08 +00:00
platforms = [ "x86_64-linux" ];
mainProgram = "LycheeSlicer";
2025-02-02 15:05:08 +00:00
};
}