init: sunshine-moonlight-accept module

This commit is contained in:
a-kenji
2024-03-08 09:47:44 +01:00
parent 8d72a36298
commit 32d0f1ccd4
21 changed files with 1235 additions and 37 deletions

View File

@@ -0,0 +1,39 @@
{ lib
, python3Packages
, makeDesktopItem
, copyDesktopItems
}:
let
desktop-file = makeDesktopItem {
name = "org.clan.moonlight-sunset-accept";
exec = "moonlight-sunshine-accept moonlight join %u";
desktopName = "moonlight-handler";
startupWMClass = "moonlight-handler";
mimeTypes = [ "x-scheme-handler/moonlight" ];
};
in
python3Packages.buildPythonApplication {
name = "moonlight-sunshine-accept";
src = ./.;
format = "pyproject";
propagatedBuildInputs = [ python3Packages.cryptography ];
nativeBuildInputs = [
python3Packages.setuptools
copyDesktopItems
];
desktopItems = [
desktop-file
];
meta = with lib; {
description = "Moonlight Sunshine Bridge";
license = licenses.mit;
maintainers = with maintainers; [ a-kenji ];
mainProgram = "moonlight-sunshine-accept";
};
}