about summary refs log tree commit diff
path: root/pkgs/applications/audio/sptlrx
diff options
context:
space:
mode:
authorMoritz Böhme <mail@moritzboeh.me>2022-05-13 17:30:35 +0200
committerMoritz Böhme <mail@moritzboeh.me>2022-05-13 18:01:13 +0200
commitcb1ae7f1c43ebb7eb23383d9208a56780ac75b6c (patch)
tree99ceb138212054c060bcf86b02affe1b08df00cf /pkgs/applications/audio/sptlrx
parent24ad6b306dda52b32460f2edf68baf11f2357ff9 (diff)
sptlrx: add updateScript
Diffstat (limited to 'pkgs/applications/audio/sptlrx')
-rw-r--r--pkgs/applications/audio/sptlrx/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/audio/sptlrx/default.nix b/pkgs/applications/audio/sptlrx/default.nix
index ffe4741d179b0..40d43d207fb3d 100644
--- a/pkgs/applications/audio/sptlrx/default.nix
+++ b/pkgs/applications/audio/sptlrx/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub, testers, sptlrx }:
+{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, sptlrx }:
 
 buildGoModule rec {
   pname = "sptlrx";
@@ -15,10 +15,13 @@ buildGoModule rec {
 
   ldflags = [ "-s" "-w" ];
 
-  passthru.tests.version = testers.testVersion {
-    package = sptlrx;
-    # TODO Wrong version in `0.2.0`. Has been fixed upstream.
-    version = "v0.1.0";
+  passthru = {
+    updateScript = nix-update-script { attrPath = pname; };
+    tests.version = testers.testVersion {
+      package = sptlrx;
+      # TODO Wrong version in `0.2.0`. Has been fixed upstream.
+      version = "v0.1.0";
+    };
   };
 
   meta = with lib; {