Compare commits

..

2 commits

Author SHA1 Message Date
983385bec3
audiorelay: add desktop item 2024-07-18 16:17:23 +03:00
81158bfc49
Add AudioRelay to package list 2024-07-18 16:10:47 +03:00
2 changed files with 18 additions and 0 deletions

View file

@ -1,6 +1,7 @@
# Packages # Packages
| Name | Package | Description | | Name | Package | Description |
|-------------------|-------------------|-----------------------------------------------------------------------------------------| |-------------------|-------------------|-----------------------------------------------------------------------------------------|
| AudioRelay | audiorelay | Application to stream every sound from your PC to one or multiple Android devices |
| Compile optimized | compileOptimized | Utility function for compiling packages with custom compile flags aimed at optimization | | Compile optimized | compileOptimized | Utility function for compiling packages with custom compile flags aimed at optimization |
| VSCode extensions | vscode-extensions | Collection of VSCode extensions not found in nixpkgs | | VSCode extensions | vscode-extensions | Collection of VSCode extensions not found in nixpkgs |

View file

@ -3,6 +3,7 @@
stdenv, stdenv,
fetchzip, fetchzip,
makeWrapper, makeWrapper,
makeDesktopItem,
temurin-bin-17, temurin-bin-17,
zip, zip,
@ -30,6 +31,19 @@ let
libpulseaudio libpulseaudio
stdenv.cc.cc.lib stdenv.cc.cc.lib
]; ];
desktopItem = makeDesktopItem {
name = "audiorelay";
desktopName = "AudioRelay";
comment = "Stream audio between your devices";
categories = [ "AudioVideo" "Audio" "Network" ];
icon = "audiorelay";
exec = "audiorelay";
startupNotify = true;
startupWMClass = "com-azefsw-audioconnect-desktop-app-MainKt";
};
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -58,6 +72,9 @@ stdenv.mkDerivation {
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall
mkdir -p $out/share/applications
cp ${desktopItem}/share/applications/audiorelay.desktop $out/share/applications
mkdir -p $out/lib mkdir -p $out/lib
cp lib/app/audiorelay.jar $out/lib cp lib/app/audiorelay.jar $out/lib