lyricspot: init at 2.0.0 (#523977)

This commit is contained in:
Sandro 2026-07-01 15:26:10 +00:00 committed by GitHub
commit e5e0258d7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 54 additions and 0 deletions

View file

@ -30601,6 +30601,12 @@
github = "yarektyshchenko";
githubId = 185304;
};
yarn = {
name = "yarncat";
github = "yaaaarn";
githubId = 30006414;
email = "nix@yarncat.moe";
};
yarny = {
github = "Yarny0";
githubId = 41838844;

View file

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