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,
|
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,10 @@ stdenv.mkDerivation {
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
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
|
mkdir -p $out/lib
|
||||||
cp lib/app/audiorelay.jar $out/lib
|
cp lib/app/audiorelay.jar $out/lib
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue