2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fontconfig
|
|
|
|
, xorg
|
|
|
|
, libglvnd
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
|
|
|
, graphicsmagick
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "galaxy-buds-client";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "4.5.4";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ThePBone";
|
|
|
|
repo = "GalaxyBudsClient";
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-mmhXTtESjc8uNULc9zV2Qy/815BEEL7ybdnjArF2CXY=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
projectFile = [ "GalaxyBudsClient/GalaxyBudsClient.csproj" ];
|
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
copyDesktopItems
|
|
|
|
graphicsmagick
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [ stdenv.cc.cc.lib fontconfig ];
|
|
|
|
|
|
|
|
runtimeDeps = [
|
|
|
|
libglvnd
|
|
|
|
xorg.libSM
|
|
|
|
xorg.libICE
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
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;
|
|
|
|
})
|
|
|
|
];
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "GalaxyBudsClient";
|
|
|
|
description = "Unofficial Galaxy Buds Manager for Windows and Linux";
|
|
|
|
homepage = "https://github.com/ThePBone/GalaxyBudsClient";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.icy-thought ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|