This commit is contained in:
alsaiduq-lab 2026-01-15 13:16:05 -07:00
parent 008d5c15c0
commit 849cae10fa
8 changed files with 135 additions and 8 deletions

3
pkgs/README.md Normal file
View file

@ -0,0 +1,3 @@
## random assorted stuff
aka stuff that needs to be built for nix (or different flags)

View file

@ -7,4 +7,7 @@
minijinja-cli = pkgs.callPackage ./minijinja-cli {};
thorium = pkgs.callPackage ./thorium {};
rpcs3 = pkgs.callPackage ./rpcs3 {};
dms-plugins = {
lyrics-on-panel = pkgs.callPackage ./dms-plugins/lyrics-on-panel {};
};
}

View file

@ -0,0 +1,3 @@
{pkgs}: {
lyrics-on-panel = pkgs.callPackage ./lyrics-on-panel {};
}

View file

@ -0,0 +1,49 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
python313,
makeWrapper,
}: let
python = python313.withPackages (ps: [
ps.websockets
ps.dbus-python
]);
src = fetchFromGitHub {
owner = "KangweiZhu";
repo = "lyrics-on-panel";
rev = "main";
hash = "sha256-8H0BUmr7OP5Zq47yj2Uk1hKQxezO4ccs7lfApDXHoE0=";
};
in
stdenvNoCC.mkDerivation {
pname = "dms-lyrics-on-panel";
version = "unstable";
inherit src;
nativeBuildInputs = [makeWrapper];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/plugin $out/bin
cp -r dms/* $out/plugin/
cp -r backend/src $out/backend
makeWrapper ${python}/bin/python $out/bin/lyrics-on-panel-backend \
--add-flags "$out/backend/server.py"
runHook postInstall
'';
meta = {
description = "Lyrics on Panel - DMS plugin and backend";
homepage = "https://github.com/KangweiZhu/lyrics-on-panel";
license = lib.licenses.gpl3;
maintainer = ["Cobray"];
};
}