From a4022cf3de27d356df8d40c1b9f5b9d00cce543e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 11 May 2022 15:57:52 +0200 Subject: [PATCH] sptlrx: add version test --- pkgs/applications/audio/sptlrx/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/sptlrx/default.nix b/pkgs/applications/audio/sptlrx/default.nix index 2ec9562c620..ffe4741d179 100644 --- a/pkgs/applications/audio/sptlrx/default.nix +++ b/pkgs/applications/audio/sptlrx/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, testers, sptlrx }: buildGoModule rec { pname = "sptlrx"; @@ -15,6 +15,12 @@ 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"; + }; + meta = with lib; { description = "Spotify lyrics in your terminal"; homepage = "https://github.com/raitonoberu/sptlrx";