@@ -1,23 +1,27 @@
11{ lib, fetchFromGitHub, makeDesktopItem, prusa-slicer }:
22let
33 appname = "SuperSlicer";
4− version = "2.3.56.8";
54 pname = "super-slicer";
65 description = "PrusaSlicer fork with more features and faster development cycle";
7− override = super: {
6+
7+ versions = {
8+ stable = { version = "2.3.56.9"; sha256 = "sha256-vv01wGQkrasKKjpGSDeDqZbd1X5/iTfGXYN5Jwz+FKE="; };
9+ staging = { version = "2.3.57.0"; sha256 = "sha256-7o0AqgQcKYc6c+Hi3x5pC/pKJZPlEsYOYk9sC21+mvM="; };
10+ };
11+
12+ override = { version, sha256 }: super: {
813 inherit version pname;
914
1015 src = fetchFromGitHub {
1116 owner = "supermerill";
1217 repo = "SuperSlicer";
13− sha256 = "sha256-em0OgrcPaV2VYM8DpvtVJjgdojStMF/ROUEtZ8iLZfo=";
18+ inherit sha256;
1419 rev = version;
1520 fetchSubmodules = true;
1621 };
1722
1823 # We don't need PS overrides anymore, and gcode-viewer is embedded in the binary.
1924 postInstall = null;
20− dontStrip = true;
2125 separateDebugInfo = true;
2226
2327 # See https://github.com/supermerill/SuperSlicer/issues/432
@@ -44,5 +48,10 @@ let
4448 maintainers = with maintainers; [ cab404 moredread ];
4549 };
4650
51+ passthru = allVersions;
52+
4753 };
48−in prusa-slicer.overrideAttrs override
54+
55+ allVersions = builtins.mapAttrs (_name: version: (prusa-slicer.overrideAttrs (override version))) versions;
56+in
57+allVersions.stable