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