added desktop item option

Signed-off-by: Xaiya Schumin <d.schumin@proton.me>
This commit is contained in:
Xaiya Schumin
2026-05-20 11:58:32 +02:00
parent ea44ab432f
commit 6ef2f7e4bf
+14 -2
View File
@@ -3,6 +3,7 @@
stdenv,
fetchurl,
appimageTools,
makeDesktopItem,
}:
let
version = "2.3.5";
@@ -13,12 +14,23 @@ let
hash = "sha256-M7oDxVevspA3SGuHktS8ChQAYopgIqypiVlzyE4uyqI=";
};
appimageContents = appimageTools.extractType1 { inherit src; name = pname; };
desktopItem = makeDesktopItem {
name = pname;
exec = pname;
# icon
desktopName = pname;
genericName = "Discord Music Presence";
categories = [ "Application" ];
};
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
mkdir "$out/share";
ln -s "${desktopItem}/share/applications" "$out/share";
'';
meta = {
description = "The Discord music status that works with any media player";
homepage = "https://github.com/ungive/discord-music-presence";