Unverified Commit 8486d69b authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

LycheeSlicer: init at 7.3.1 (#378845)

parents 56f90ebe f7b90766
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -23472,6 +23472,11 @@
    githubId = 506181;
    name = "Peter Marheine";
  };
  tarinaky = {
    github = "Tarinaky";
    githubId = 186027;
    name = "Tarinaky";
  };
  tasmo = {
    email = "tasmo@tasmo.de";
    github = "tasmo";
+54 −0
Original line number Diff line number Diff line
{
  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";
  };
}