2022-05-18 14:49:53 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, sptlrx }:
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "sptlrx";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "1.0.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raitonoberu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-UDxmUc902A6+DC254wyvjSzNs95K7QIuDW+24o8VCCc=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
vendorSha256 = "sha256-t9Mkszzuw7YtBnADsZDjwN2AA6MuQH4+zzDiHe302A4=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { attrPath = pname; };
|
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = sptlrx;
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "v${version}"; # needed because testVersion uses grep -Fw
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2022-02-20 05:27:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Spotify lyrics in your terminal";
|
|
|
|
homepage = "https://github.com/raitonoberu/sptlrx";
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://github.com/raitonoberu/sptlrx/releases/tag/v${version}";
|
2022-02-20 05:27:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ MoritzBoehme ];
|
|
|
|
};
|
|
|
|
}
|