waybar-lyric: init at 0.10.0 (#422096)

authored by Wolfgang Walther and committed by GitHub 121f8a1d 715c984e

+46
+6
maintainers/maintainer-list.nix
··· 26318 26318 githubId = 223408; 26319 26319 name = "Varun Madiath"; 26320 26320 }; 26321 + vanadium5000 = { 26322 + email = "vanadium5000@gmail.com"; 26323 + github = "Vanadium5000"; 26324 + githubId = 151467774; 26325 + name = "Vanadium5000"; 26326 + }; 26321 26327 vancluever = { 26322 26328 email = "chrism@vancluevertech.com"; 26323 26329 github = "vancluever";
+40
pkgs/by-name/wa/waybar-lyric/package.nix
··· 1 + { 2 + lib, 3 + buildGoModule, 4 + fetchFromGitHub, 5 + versionCheckHook, 6 + nix-update-script, 7 + }: 8 + buildGoModule (finalAttrs: { 9 + pname = "waybar-lyric"; 10 + version = "0.10.0"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "Nadim147c"; 14 + repo = "waybar-lyric"; 15 + tag = "v${finalAttrs.version}"; 16 + hash = "sha256-RqUaak9MH7lE1ez8T+UKm2Eqk0ImePPubfFExNpZqM8="; 17 + }; 18 + 19 + vendorHash = "sha256-DBtSC+ePl6dvHqB10FyeojnYoT3mmsWAnbs/lZLibl8="; 20 + 21 + doInstallCheck = true; 22 + nativeInstallCheckInputs = [ versionCheckHook ]; 23 + versionCheckProgramArg = "--version"; 24 + versionCheckKeepEnvironment = [ "XDG_CACHE_HOME" ]; 25 + preInstallCheck = '' 26 + # ERROR Failed to find cache directory 27 + export XDG_CACHE_HOME=$(mktemp -d) 28 + ''; 29 + 30 + passthru.updateScript = nix-update-script { }; 31 + 32 + meta = { 33 + description = "Waybar module for displaying song lyrics"; 34 + homepage = "https://github.com/Nadim147c/waybar-lyric"; 35 + license = lib.licenses.agpl3Only; 36 + mainProgram = "waybar-lyric"; 37 + maintainers = with lib.maintainers; [ vanadium5000 ]; 38 + platforms = lib.platforms.linux; 39 + }; 40 + })