audiorelay: add desktop item
This commit is contained in:
parent
81158bfc49
commit
506c72254b
1 changed files with 18 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
fetchzip,
|
||||
makeWrapper,
|
||||
makeDesktopItem,
|
||||
temurin-bin-17,
|
||||
zip,
|
||||
|
||||
|
@ -30,6 +31,19 @@ let
|
|||
libpulseaudio
|
||||
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
|
||||
|
||||
stdenv.mkDerivation {
|
||||
|
@ -58,6 +72,10 @@ stdenv.mkDerivation {
|
|||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/share/{applications,pixmaps}
|
||||
cp ${desktopItem}/share/applications/audiorelay.desktop $out/share/applications
|
||||
cp lib/AudioRelay.png $out/share/pixmaps/audiorelay.png
|
||||
|
||||
mkdir -p $out/lib
|
||||
cp lib/app/audiorelay.jar $out/lib
|
||||
|
||||
|
|
Loading…
Reference in a new issue