diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 41060adf3330..1c905067113e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -23472,6 +23472,11 @@ githubId = 506181; name = "Peter Marheine"; }; + tarinaky = { + github = "Tarinaky"; + githubId = 186027; + name = "Tarinaky"; + }; tasmo = { email = "tasmo@tasmo.de"; github = "tasmo"; diff --git a/pkgs/by-name/ly/LycheeSlicer/package.nix b/pkgs/by-name/ly/LycheeSlicer/package.nix new file mode 100644 index 000000000000..044d22cff5df --- /dev/null +++ b/pkgs/by-name/ly/LycheeSlicer/package.nix @@ -0,0 +1,54 @@ +{ + appimageTools, + fetchurl, + makeDesktopItem, + lib, + xorg, +}: +let + pname = "LycheeSlicer"; + version = "7.3.1"; + + src = fetchurl { + url = "https://mango-lychee.nyc3.cdn.digitaloceanspaces.com/LycheeSlicer-${version}.AppImage"; + hash = "sha256-21ySVT2Un/WAWxvEAH5GfrumGbsSaeNVjaMsL9mYwsg="; + }; + + desktopItem = makeDesktopItem { + name = "Lychee Slicer"; + genericName = "Resin Slicer"; + comment = "All-in-one 3D slicer for Resin and Filament"; + desktopName = "Lychee"; + 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/* + ''; + + buildInputs = [ + xorg.libxshmfence + ]; + + 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 ]; + platforms = [ "x86_64-linux" ]; + mainProgram = "lychee"; + }; +}