Unverified Commit 67e64ebc authored by mrtnvgr's avatar mrtnvgr
Browse files

surge-XT: add updateScript

parent f976571e
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -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";