From f0a3b6cd9b974c6a11e65e49e3f3a965e3edef28 Mon Sep 17 00:00:00 2001 From: Milo Moisson Date: Sun, 22 Dec 2024 22:03:48 +0100 Subject: [PATCH] feat(pkgs): bundle cura with appimage --- home-manager/profiles/desktop.nix | 3 +-- pkgs/cura.nix | 13 +++++++++++++ pkgs/default.nix | 1 + 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 pkgs/cura.nix diff --git a/home-manager/profiles/desktop.nix b/home-manager/profiles/desktop.nix index bd18f45..ec7e707 100644 --- a/home-manager/profiles/desktop.nix +++ b/home-manager/profiles/desktop.nix @@ -81,8 +81,7 @@ in blender bottles calibre - # TODO: wait for fix - # cura + lpkgs.cura element-desktop evince file-roller diff --git a/pkgs/cura.nix b/pkgs/cura.nix new file mode 100644 index 0000000..f895d7d --- /dev/null +++ b/pkgs/cura.nix @@ -0,0 +1,13 @@ +{ appimageTools +, fetchurl + }: + +appimageTools.wrapType2 rec { + pname = "cura"; + version = "5.9.0"; + + src = fetchurl { + url = "https://github.com/Ultimaker/Cura/releases/download/${version}/UltiMaker-Cura-${version}-linux-X64.AppImage"; + hash = "sha256-STtVeM4Zs+PVSRO3cI0LxnjRDhOxSlttZF+2RIXnAp4="; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix index d0fdd94..59e416d 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -5,6 +5,7 @@ let in { asak = pkgs.callPackage ./asak.nix { }; + cura = pkgs.callPackage ./cura.nix { }; find-unicode = pkgs.callPackage ./find-unicode.nix { }; # lazyjj = pkgs.callPackage ./lazyjj.nix { }; names = pkgs.callPackage ./names.nix { };