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";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.1.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raitonoberu";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-6GbefTWrhH6RdASmSrugd4xESkwqFVF5qwFmf0JUDTY=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-Ll5jUjpx4165BAE86/z95i4xa8fdKlfxqrUc/gDLqJ0=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru = {
|
2022-12-28 21:21:41 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-05-18 14:49:53 +00:00
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = sptlrx;
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "v${version}"; # needed because testVersion uses grep -Fw
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "sptlrx";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
}
|