added
This commit is contained in:
parent
008d5c15c0
commit
849cae10fa
8 changed files with 135 additions and 8 deletions
3
pkgs/dms-plugins/default.nix
Normal file
3
pkgs/dms-plugins/default.nix
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{pkgs}: {
|
||||
lyrics-on-panel = pkgs.callPackage ./lyrics-on-panel {};
|
||||
}
|
||||
49
pkgs/dms-plugins/lyrics-on-panel/default.nix
Normal file
49
pkgs/dms-plugins/lyrics-on-panel/default.nix
Normal 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"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue