surge-XT: add updateScript

This commit is contained in:
mrtnvgr
2025-11-03 10:52:22 +07:00
parent f976571e0d
commit 67e64ebc5d
+9 -1
View File
@@ -2,6 +2,7 @@
stdenv,
lib,
fetchFromGitHub,
gitUpdater,
cmake,
pkg-config,
alsa-lib,
@@ -27,7 +28,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "surge-synthesizer";
repo = "surge";
tag = "release_xt_${finalAttrs.version}";
tag = "${finalAttrs.finalPackage.passthru.rev-prefix}${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-4b0H3ZioiXFc4KCeQReobwQZJBl6Ep2/8JlRIwvq/hQ=";
};
@@ -86,6 +87,13 @@ stdenv.mkDerivation (finalAttrs: {
]
);
passthru = {
rev-prefix = "release_xt_";
updateScript = gitUpdater {
inherit (finalAttrs.finalPackage.passthru) rev-prefix;
};
};
meta = {
description = "LV2 & VST3 synthesizer plug-in (previously released as Vember Audio Surge)";
homepage = "https://surge-synthesizer.github.io";