nixpkgs/pkgs/applications/audio/sptlrx/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
956 B
Nix
Raw Normal View History

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-02-27 18:15:41 +00:00
version = "0.2.0";
2022-02-03 18:25:29 +00:00
src = fetchFromGitHub {
owner = "raitonoberu";
repo = pname;
rev = "v${version}";
2022-02-27 18:15:41 +00:00
sha256 = "sha256-b38DACSdnjwPsLMrkt0Ubpqpn/4SDAgrdSlp9iAcxfE=";
2022-02-03 18:25:29 +00:00
};
2022-02-27 18:15:41 +00:00
vendorSha256 = "sha256-/fqWnRQBpLNoTwqrFDKqQuv1r9do1voysBhLuj223S0=";
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;
# TODO Wrong version in `0.2.0`. Has been fixed upstream.
version = "v0.1.0";
};
2022-05-11 13:57:52 +00:00
};
2022-02-03 18:25:29 +00:00
meta = with lib; {
description = "Spotify lyrics in your terminal";
2022-02-03 18:25:29 +00:00
homepage = "https://github.com/raitonoberu/sptlrx";
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 ];
};
}