Files

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

52 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
testers,
sptlrx,
}:
buildGoModule rec {
pname = "sptlrx";
version = "1.2.2";
src = fetchFromGitHub {
owner = "raitonoberu";
repo = "sptlrx";
rev = "v${version}";
hash = "sha256-b8ALhEjolH0RH+I9HVQeOagPBi2isLNUxqKdj5u2O9s=";
};
vendorHash = "sha256-pExSQcYjqliZZg/91t52yk6UJ4QCbpToMpONIFUNkwc=";
ldflags = [
"-s"
"-w"
];
checkFlags =
let
# Requires network access
skippedTests = [ "TestGetIndex" ];
in
[ "-skip=^${lib.concatStringsSep "$|^" skippedTests}$" ];
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = sptlrx;
version = "v${version}"; # needed because testVersion uses grep -Fw
};
};
meta = {
description = "Spotify lyrics in your terminal";
homepage = "https://github.com/raitonoberu/sptlrx";
changelog = "https://github.com/raitonoberu/sptlrx/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ MoritzBoehme ];
mainProgram = "sptlrx";
};
}