From ff928226bc70c0425a52a54be8a4d9fcb5e9583d Mon Sep 17 00:00:00 2001 From: yaaaarn <30006414+yaaaarn@users.noreply.github.com> Date: Sat, 30 May 2026 17:27:19 +0200 Subject: [PATCH] lyricspot: init at 2.0.0 --- pkgs/by-name/ly/lyricspot/package.nix | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 pkgs/by-name/ly/lyricspot/package.nix diff --git a/pkgs/by-name/ly/lyricspot/package.nix b/pkgs/by-name/ly/lyricspot/package.nix new file mode 100644 index 000000000000..6a7eaef1388e --- /dev/null +++ b/pkgs/by-name/ly/lyricspot/package.nix @@ -0,0 +1,48 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, + makeWrapper, + python3, + playerctl, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "lyricspot"; + version = "2.0.0"; + + src = fetchFromGitHub { + owner = "vlensys"; + repo = "lyricspot"; + tag = "v${finalAttrs.version}"; + hash = "sha256-qDXTcTlpMWW7vAQuOFBEnM26DvIdy/fvkGTL/TdDa2A="; + }; + + strictDeps = true; + __structuredAttrs = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/bin + cp lyricspot.py $out/bin/lyricspot + chmod +x $out/bin/lyricspot + wrapProgram $out/bin/lyricspot \ + --prefix PATH ":" ${ + lib.makeBinPath [ + python3 + playerctl + ] + } + ''; + + meta = { + homepage = "https://github.com/vlensys/lyricspot"; + description = "Good old live synced lyrics in your terminal"; + license = lib.licenses.gpl3Only; + mainProgram = "lyricspot"; + maintainers = with lib.maintainers; [ + yarn + ]; + platforms = lib.platforms.unix; + }; +})