nixpkgs/pkgs/applications/audio/galaxy-buds-client/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

68 lines
1.5 KiB
Nix
Raw Normal View History

2022-10-14 16:07:11 +03:00
{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
, fontconfig
, xorg
, libglvnd
2022-10-21 01:15:29 +03:00
, makeDesktopItem
, copyDesktopItems
, graphicsmagick
2022-10-14 16:07:11 +03:00
}:
buildDotnetModule rec {
pname = "galaxy-buds-client";
2023-11-15 18:04:19 +03:00
version = "4.5.4";
2022-10-14 16:07:11 +03:00
src = fetchFromGitHub {
owner = "ThePBone";
repo = "GalaxyBudsClient";
rev = version;
2023-11-15 18:04:19 +03:00
hash = "sha256-mmhXTtESjc8uNULc9zV2Qy/815BEEL7ybdnjArF2CXY=";
2022-10-14 16:07:11 +03:00
};
projectFile = [ "GalaxyBudsClient/GalaxyBudsClient.csproj" ];
nugetDeps = ./deps.nix;
dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ];
2022-10-21 01:15:29 +03:00
nativeBuildInputs = [
copyDesktopItems
graphicsmagick
2022-10-14 16:07:11 +03:00
];
2022-10-21 01:15:29 +03:00
buildInputs = [ stdenv.cc.cc.lib fontconfig ];
2022-10-14 16:07:11 +03:00
runtimeDeps = [
libglvnd
xorg.libSM
xorg.libICE
xorg.libX11
];
2022-10-21 01:15:29 +03:00
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;
};
2022-10-14 16:07:11 +03:00
meta = with lib; {
2022-10-21 01:15:29 +03:00
mainProgram = "GalaxyBudsClient";
2022-10-14 16:07:11 +03:00
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;
};
}