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

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

34 lines
940 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";
version = "1.0.0";
2022-02-03 18:25:29 +00:00
src = fetchFromGitHub {
owner = "raitonoberu";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UDxmUc902A6+DC254wyvjSzNs95K7QIuDW+24o8VCCc=";
2022-02-03 18:25:29 +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;
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; {
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 ];
};
}