depot/third_party/nixpkgs/pkgs/applications/audio/galaxy-buds-client/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

69 lines
1.6 KiB
Nix

{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
, fontconfig
, xorg
, libglvnd
, makeDesktopItem
, copyDesktopItems
, graphicsmagick
}:
buildDotnetModule rec {
pname = "galaxy-buds-client";
version = "4.5.4";
src = fetchFromGitHub {
owner = "ThePBone";
repo = "GalaxyBudsClient";
rev = version;
hash = "sha256-mmhXTtESjc8uNULc9zV2Qy/815BEEL7ybdnjArF2CXY=";
};
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
'';
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;
maintainers = [ maintainers.icy-thought ];
platforms = platforms.linux;
};
}