mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
70 lines
1.6 KiB
Nix
70 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildDotnetModule
|
|
, fetchFromGitHub
|
|
, autoPatchelfHook
|
|
, 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 = [
|
|
autoPatchelfHook
|
|
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;
|
|
};
|
|
}
|