Skip to content

Commit

Permalink
cura5: make package updatable, add changelog and mainProgram
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <[email protected]>
  • Loading branch information
pbek committed Jan 11, 2025
1 parent 4dc8301 commit f4b8716
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions apps/cura5/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
appimageTools,
copyDesktopItems,
makeDesktopItem,
nix-update-script,
}:

let
stdenvNoCC.mkDerivation rec {
pname = "cura-appimage";
version = "5.9.0";

Expand Down Expand Up @@ -52,9 +53,7 @@ let
done
QT_QPA_PLATFORM=xcb exec "${curaAppimageToolsWrapped}/bin/${appimageBinName}" "''${args[@]}"
'';
in
stdenvNoCC.mkDerivation rec {
inherit pname version;

dontUnpack = true;

nativeBuildInputs = [ copyDesktopItems ];
Expand Down Expand Up @@ -107,19 +106,22 @@ stdenvNoCC.mkDerivation rec {
runHook postInstall
'';

passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex=([56789].+)" ]; };

meta = {
description = "3D printing software";
homepage = "https://github.com/ultimaker/cura";
changelog = "https://github.com/Ultimaker/Cura/releases/tag/${version}";
longDescription = ''
Cura converts 3D models into paths for a 3D printer. It prepares your print for maximum accuracy, minimum printing time and good reliability with many extra features that make your print come out great.
'';
license = lib.licenses.lgpl3Plus;
platforms = [ "x86_64-linux" ];
mainProgram = "cura";
maintainers = with lib.maintainers; [
pbek
nh2
fliegendewurst
bct
];
};
}

0 comments on commit f4b8716

Please sign in to comment.