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 = {
|
2022-12-25 23:11:14 +01:00
|
|
|
updateScript = nix-update-script { };
|
2022-05-13 17:30:35 +02:00
|
|
|
tests.version = testers.testVersion {
|
|
|
|
package = sptlrx;
|
2022-07-30 10:04:49 +02:00
|
|
|
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; {
|
2022-02-03 21:11:04 +01:00
|
|
|
description = "Spotify lyrics in your terminal";
|
2022-02-03 19:25:29 +01:00
|
|
|
homepage = "https://github.com/raitonoberu/sptlrx";
|
2022-05-13 17:43:38 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|