Files
nixpkgs/pkgs/by-name/sp/sptlrx/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
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";
};
}