From 07c75570f2b87b67091b604a801c521bbdc2e27f Mon Sep 17 00:00:00 2001 From: Fl-ris Date: Wed, 25 Feb 2026 14:58:48 +0100 Subject: [PATCH] kirimoto: init at 4.6.3 --- pkgs/by-name/ki/kirimoto/package.nix | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/ki/kirimoto/package.nix diff --git a/pkgs/by-name/ki/kirimoto/package.nix b/pkgs/by-name/ki/kirimoto/package.nix new file mode 100644 index 000000000000..47f70c734141 --- /dev/null +++ b/pkgs/by-name/ki/kirimoto/package.nix @@ -0,0 +1,41 @@ +{ + lib, + appimageTools, + fetchurl, +}: + +let + version = "4.6.3"; + pname = "kirimoto"; + + src = fetchurl { + url = "https://github.com/GridSpace/grid-apps/releases/download/${version}/KiriMoto-linux-x86_64.AppImage"; + hash = "sha256-YCfDCR92xtwL3634iIMYf6IjkeqoWrF7/YNCwKSjnfs=="; + }; + + appimageContents = appimageTools.extractType2 { inherit pname version src; }; + +in +appimageTools.wrapType2 rec { + inherit pname version src; + + extraInstallCommands = '' + install -Dm444 ${appimageContents}/grid-apps.desktop -t $out/share/applications/ + install -Dm444 ${appimageContents}/grid-apps.png -t $out/share/icons/hicolor/512x512/apps/ + + substituteInPlace $out/share/applications/grid-apps.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=${meta.mainProgram} --no-sandbox --ozone-platform=x11 --disable-gpu-sandbox --in-process-gpu' + ''; + + meta = { + description = "Open source Slicer for CAM, Laser and 3D-printer"; + homepage = "https://grid.space/"; + downloadPage = "https://grid.space/downloads.html"; + changelog = "https://grid.space/news"; + license = lib.licenses.mit; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + maintainers = with lib.maintainers; [ FlorisMenninga ]; + platforms = [ "x86_64-linux" ]; + mainProgram = "kirimoto"; + }; +}