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-03-05 16:20:37 +00:00
|
|
|
version = "0.2.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raitonoberu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-b38DACSdnjwPsLMrkt0Ubpqpn/4SDAgrdSlp9iAcxfE=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
vendorSha256 = "sha256-/fqWnRQBpLNoTwqrFDKqQuv1r9do1voysBhLuj223S0=";
|
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;
|
|
|
|
# TODO Wrong version in `0.2.0`. Has been fixed upstream.
|
|
|
|
version = "v0.1.0";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|