mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
galaxy-buds-client: add desktop file
This commit is contained in:
parent
b4ee59329a
commit
0763b2b957
1 changed files with 27 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue