lrcsnc: init at 0.1.0

This commit is contained in:
loner
2025-09-15 18:43:37 +08:00
parent 4569dc98fc
commit 8e8fd0cdd5
+40
View File
@@ -0,0 +1,40 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "lrcsnc";
version = "0.1.0";
src = fetchFromGitHub {
owner = "Endg4meZer0";
repo = "lrcsnc";
tag = "v${finalAttrs.version}";
hash = "sha256-gKb0cTpCPlyvJFthV1csn8HaVcUvXq+KC+nTT5sGhww=";
};
vendorHash = "sha256-ww+SXy29woGlb120sj1oGb4MIQJzpBCKGpUKYsYxTMk=";
ldflags = [ "-X lrcsnc/internal/setup.version=${finalAttrs.version}" ];
# The tests require network access
doCheck = false;
postInstall = ''
install -Dm644 LICENSE $out/share/licenses/lrcsnc/LICENSE
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Player-agnostic synced lyrics fetcher and displayer";
homepage = "https://github.com/Endg4meZer0/lrcsnc";
mainProgram = "lrcsnc";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ lonerOrz ];
};
})