about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2022-05-14 10:49:33 +0800
committerGitHub <noreply@github.com>2022-05-14 10:49:33 +0800
commitb76ad2c88075cddd690d7e58d489867fedcbf8db (patch)
tree70e2cb0d54a7a045be8f17ec51fa3b5f6d6761e2 /pkgs
parent9af377e5ee2d90dfd4ad4fc885bbbd1a47ed985e (diff)
parentcb1ae7f1c43ebb7eb23383d9208a56780ac75b6c (diff)
Merge pull request #172881 from MoritzBoehme/sptlrx-git-updater
sptlrx: add updateScript
Diffstat (limited to 'pkgs')
-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; {