diff options
author | Icy-Thought <icy-thought@pm.me> | 2022-10-21 00:15:29 +0200 |
---|---|---|
committer | Icy-Thought <icy-thought@pm.me> | 2022-10-21 02:12:49 +0200 |
commit | 0763b2b9570746e5e6dc9437ce19b209e2ef6c13 (patch) | |
tree | c3238249c39b1a3989c1df3fb3994c68213b78f0 | |
parent | b4ee59329a20441cdcc7d8e77e7412c4ba8e87dc (diff) |
galaxy-buds-client: add desktop file
-rw-r--r-- | pkgs/applications/audio/galaxy-buds-client/default.nix | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/pkgs/applications/audio/galaxy-buds-client/default.nix b/pkgs/applications/audio/galaxy-buds-client/default.nix index 6e33b4aec3d9b..f3a0ba8c6e933 100644 --- a/pkgs/applications/audio/galaxy-buds-client/default.nix +++ b/pkgs/applications/audio/galaxy-buds-client/default.nix @@ -6,6 +6,9 @@ , fontconfig , xorg , libglvnd +, makeDesktopItem +, copyDesktopItems +, graphicsmagick }: buildDotnetModule rec { @@ -23,13 +26,14 @@ buildDotnetModule rec { nugetDeps = ./deps.nix; dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ]; - nativeBuildInputs = [ autoPatchelfHook ]; - - buildInputs = [ - stdenv.cc.cc.lib - fontconfig + nativeBuildInputs = [ + autoPatchelfHook + copyDesktopItems + graphicsmagick ]; + buildInputs = [ stdenv.cc.cc.lib fontconfig ]; + runtimeDeps = [ libglvnd xorg.libSM @@ -37,7 +41,25 @@ buildDotnetModule rec { xorg.libX11 ]; + postFixup = '' + mkdir -p $out/share/icons/hicolor/256x256/apps/ + gm convert $src/GalaxyBudsClient/Resources/icon_white.ico $out/share/icons/hicolor/256x256/apps/${meta.mainProgram}.png + ''; + + desktopItems = makeDesktopItem { + name = meta.mainProgram; + exec = meta.mainProgram; + icon = meta.mainProgram; + desktopName = meta.mainProgram; + genericName = "Galaxy Buds Client"; + comment = meta.description; + type = "Application"; + categories = [ "Settings" ]; + startupNotify = true; + }; + meta = with lib; { + mainProgram = "GalaxyBudsClient"; description = "Unofficial Galaxy Buds Manager for Windows and Linux"; homepage = "https://github.com/ThePBone/GalaxyBudsClient"; license = licenses.gpl3; |