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
918 B
Nix
Raw Normal View History

2022-05-13 17:30:35 +02:00
{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, sptlrx }:
2022-02-03 19:25:29 +01:00
buildGoModule rec {
pname = "sptlrx";
2023-05-24 09:45:51 +02:00
version = "1.1.0";
2022-02-03 19:25:29 +01:00
src = fetchFromGitHub {
owner = "raitonoberu";
repo = pname;
rev = "v${version}";
2023-05-24 09:45:51 +02:00
hash = "sha256-6GbefTWrhH6RdASmSrugd4xESkwqFVF5qwFmf0JUDTY=";
2022-02-03 19:25:29 +01:00
};
2023-05-24 09:45:51 +02:00
vendorHash = "sha256-Ll5jUjpx4165BAE86/z95i4xa8fdKlfxqrUc/gDLqJ0=";
2022-02-03 19:25:29 +01:00
ldflags = [ "-s" "-w" ];
2022-05-13 17:30:35 +02:00
passthru = {
updateScript = nix-update-script { };
2022-05-13 17:30:35 +02:00
tests.version = testers.testVersion {
package = sptlrx;
version = "v${version}"; # needed because testVersion uses grep -Fw
2022-05-13 17:30:35 +02:00
};
2022-05-11 15:57:52 +02:00
};
2022-02-03 19:25:29 +01:00
meta = with lib; {
description = "Spotify lyrics in your terminal";
2022-02-03 19:25:29 +01:00
homepage = "https://github.com/raitonoberu/sptlrx";
changelog = "https://github.com/raitonoberu/sptlrx/releases/tag/v${version}";
2022-02-03 19:25:29 +01:00
license = licenses.mit;
maintainers = with maintainers; [ MoritzBoehme ];
};
}