waybar-lyric: init at 0.10.0

Changed package.nix

Squashed commits

Added maintainer script & changed hash
This commit is contained in:
vanadium5000 2025-07-03 20:08:23 +01:00
parent 1b64ff30a2
commit 9f0ba6c169

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;
};
})