diff --git a/pkgs/applications/misc/prusa-slicer/default.nix b/pkgs/applications/misc/prusa-slicer/default.nix index dd149014ae99..e0e5a32ab5b9 100644 --- a/pkgs/applications/misc/prusa-slicer/default.nix +++ b/pkgs/applications/misc/prusa-slicer/default.nix @@ -24,6 +24,7 @@ mpfr, nanosvg, nlopt, + nlohmann_json, opencascade-occt_7_6_1, openvdb, qhull, @@ -39,6 +40,7 @@ systemd, udevCheckHook, z3, + nix-update-script, wxGTK-override ? null, opencascade-override ? null, }: @@ -61,12 +63,12 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "prusa-slicer"; - version = "2.9.2"; + version = "2.9.3"; src = fetchFromGitHub { owner = "prusa3d"; repo = "PrusaSlicer"; - hash = "sha256-j/fdEgcFq0nWBLpyapwZIbBIXCnqEWV6Tk+6sTHk/Bc="; + hash = "sha256-B2uHrh09xKehmxnk3I4MHIjBfB/pGgFXC6R5k10JoJY="; rev = "version_${finalAttrs.version}"; }; @@ -132,6 +134,7 @@ stdenv.mkDerivation (finalAttrs: { catch2_3 webkitgtk_4_1 z3 + nlohmann_json ] ++ lib.optionals withSystemd [ systemd @@ -223,20 +226,26 @@ stdenv.mkDerivation (finalAttrs: { "libslic3r_tests|sla_print_tests" ]; - meta = - with lib; - { - description = "G-code generator for 3D printer"; - homepage = "https://github.com/prusa3d/PrusaSlicer"; - license = licenses.agpl3Plus; - maintainers = with maintainers; [ - tweber - tmarkus - fliegendewurst - ]; - platforms = platforms.unix; - } - // lib.optionalAttrs (stdenv.hostPlatform.isDarwin) { - mainProgram = "PrusaSlicer"; - }; + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version-regex" + "^version_(.+)$" + ]; + }; + + meta = { + description = "G-code generator for 3D printer"; + homepage = "https://github.com/prusa3d/PrusaSlicer"; + changelog = "https://github.com/prusa3d/PrusaSlicer/releases/tag/version_${finalAttrs.version}"; + license = lib.licenses.agpl3Plus; + maintainers = with lib.maintainers; [ + tweber + tmarkus + fliegendewurst + ]; + platforms = lib.platforms.unix; + } + // lib.optionalAttrs (stdenv.hostPlatform.isDarwin) { + mainProgram = "PrusaSlicer"; + }; })