mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
lyricspot: init at 2.0.0 (#523977)
This commit is contained in:
commit
e5e0258d7f
2 changed files with 54 additions and 0 deletions
|
|
@ -30601,6 +30601,12 @@
|
|||
github = "yarektyshchenko";
|
||||
githubId = 185304;
|
||||
};
|
||||
yarn = {
|
||||
name = "yarncat";
|
||||
github = "yaaaarn";
|
||||
githubId = 30006414;
|
||||
email = "nix@yarncat.moe";
|
||||
};
|
||||
yarny = {
|
||||
github = "Yarny0";
|
||||
githubId = 41838844;
|
||||
|
|
|
|||
48
pkgs/by-name/ly/lyricspot/package.nix
Normal file
48
pkgs/by-name/ly/lyricspot/package.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue