Unverified Commit 121f8a1d authored by Wolfgang Walther's avatar Wolfgang Walther Committed by GitHub
Browse files

waybar-lyric: init at 0.10.0 (#422096)

parents 715c984e 9f0ba6c1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+40 −0
Original line number Diff line number Diff line
{
  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;
  };
})