From 477809a52cfd721094849a1221318eaa1e5394b0 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 8 Dec 2024 23:21:07 -0300 Subject: [PATCH] Added creality print slicer --- packages/creality-print.nix | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 packages/creality-print.nix diff --git a/packages/creality-print.nix b/packages/creality-print.nix new file mode 100644 index 0000000..9efdf5f --- /dev/null +++ b/packages/creality-print.nix @@ -0,0 +1,38 @@ +{ + lib, + fetchurl, + makeDesktopItem, + appimageTools, +}: +let + releaseNotesVersion = "5.1.6"; +in +appimageTools.wrapType2 rec { + pname = "creality-print"; + version = "5.1.6"; + + src = fetchurl { + url = "https://github.com/CrealityOfficial/CrealityPrint/releases/download/v5.1.6/Creality_Print-v5.1.6.10470-x86_64-Release.AppImage"; + hash = "sha256-gS7b41UEvjwUWjCAWjJbD5Xz8QblZkT6tv5ceRhjYfI="; + }; + + desktopItems = [ + (makeDesktopItem { + name = "creality-print"; + exec = "creality-print"; + terminal = false; + desktopName = "Creality Print"; + comment = meta.description; + categories = [ "Graphics" ]; + }) + ]; + + meta = with lib; { + description = "Creality 3D Printing Slicing Software"; + homepage = "https://www.creality.com"; + changelog = "https://github.com/CrealityOfficial/CrealityPrint/releases/tag/v${releaseNotesVersion}"; + license = licenses.agpl3Only; + platforms = platforms.linux; + mainProgram = "creality-print"; + }; +}