waybar-lyric: init at 0.10.0 (#422096)

This commit is contained in:
Wolfgang Walther 2025-07-04 11:58:58 +00:00 committed by GitHub
commit 121f8a1daf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View File

@ -26318,6 +26318,12 @@
githubId = 223408;
name = "Varun Madiath";
};
vanadium5000 = {
email = "vanadium5000@gmail.com";
github = "Vanadium5000";
githubId = 151467774;
name = "Vanadium5000";
};
vancluever = {
email = "chrism@vancluevertech.com";
github = "vancluever";

View File

@ -0,0 +1,40 @@
{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "waybar-lyric";
version = "0.10.0";
src = fetchFromGitHub {
owner = "Nadim147c";
repo = "waybar-lyric";
tag = "v${finalAttrs.version}";
hash = "sha256-RqUaak9MH7lE1ez8T+UKm2Eqk0ImePPubfFExNpZqM8=";
};
vendorHash = "sha256-DBtSC+ePl6dvHqB10FyeojnYoT3mmsWAnbs/lZLibl8=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
versionCheckProgramArg = "--version";
versionCheckKeepEnvironment = [ "XDG_CACHE_HOME" ];
preInstallCheck = ''
# ERROR Failed to find cache directory
export XDG_CACHE_HOME=$(mktemp -d)
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Waybar module for displaying song lyrics";
homepage = "https://github.com/Nadim147c/waybar-lyric";
license = lib.licenses.agpl3Only;
mainProgram = "waybar-lyric";
maintainers = with lib.maintainers; [ vanadium5000 ];
platforms = lib.platforms.linux;
};
})