base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / sp / sptlrx / package.nix
blobb385898202c20015d67c9bb748d06e513bcd1864
1 { lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, sptlrx }:
3 buildGoModule rec {
4   pname = "sptlrx";
5   version = "1.1.0";
7   src = fetchFromGitHub {
8     owner = "raitonoberu";
9     repo = pname;
10     rev = "v${version}";
11     hash = "sha256-6GbefTWrhH6RdASmSrugd4xESkwqFVF5qwFmf0JUDTY=";
12   };
14   vendorHash = "sha256-Ll5jUjpx4165BAE86/z95i4xa8fdKlfxqrUc/gDLqJ0=";
16   ldflags = [ "-s" "-w" ];
18   passthru = {
19     updateScript = nix-update-script { };
20     tests.version = testers.testVersion {
21       package = sptlrx;
22       version = "v${version}"; # needed because testVersion uses grep -Fw
23     };
24   };
26   meta = with lib; {
27     description = "Spotify lyrics in your terminal";
28     homepage = "https://github.com/raitonoberu/sptlrx";
29     changelog = "https://github.com/raitonoberu/sptlrx/releases/tag/v${version}";
30     license = licenses.mit;
31     maintainers = with maintainers; [ MoritzBoehme ];
32     mainProgram = "sptlrx";
33   };