diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 907472aabc54..813c267fe665 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -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"; diff --git a/pkgs/by-name/wa/waybar-lyric/package.nix b/pkgs/by-name/wa/waybar-lyric/package.nix new file mode 100644 index 000000000000..becf0b8f5fd9 --- /dev/null +++ b/pkgs/by-name/wa/waybar-lyric/package.nix @@ -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; + }; +})