nixpkgs/pkgs/by-name/ga/galaxy-buds-client/package.nix

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

74 lines
1.8 KiB
Nix
Raw Normal View History

2022-10-14 13:07:11 +00:00
{ lib
, stdenv
, buildDotnetModule
, fetchFromGitHub
2024-11-04 02:39:19 +00:00
, dotnetCorePackages
2022-10-14 13:07:11 +00:00
, fontconfig
2024-11-04 02:39:19 +00:00
, glib
2022-10-14 13:07:11 +00:00
, libglvnd
2024-11-04 02:39:19 +00:00
, xorg
, makeWrapper
2022-10-20 22:15:29 +00:00
, makeDesktopItem
, copyDesktopItems
2022-10-14 13:07:11 +00:00
}:
buildDotnetModule rec {
pname = "galaxy-buds-client";
2024-11-04 02:39:19 +00:00
version = "5.1.0";
2022-10-14 13:07:11 +00:00
src = fetchFromGitHub {
owner = "ThePBone";
repo = "GalaxyBudsClient";
rev = version;
2024-11-04 02:39:19 +00:00
hash = "sha256-9m9H0T4rD6HIvb15h7+Q7SgLk0PkISkN8ojjh7nsiwA=";
2022-10-14 13:07:11 +00:00
};
projectFile = [ "GalaxyBudsClient/GalaxyBudsClient.csproj" ];
nugetDeps = ./deps.nix;
2024-11-04 02:39:19 +00:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
2022-10-14 13:07:11 +00:00
dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ];
2024-11-04 02:39:19 +00:00
nativeBuildInputs = [ makeWrapper copyDesktopItems ];
2022-10-14 13:07:11 +00:00
buildInputs = [ (lib.getLib stdenv.cc.cc) fontconfig ];
2022-10-20 22:15:29 +00:00
2022-10-14 13:07:11 +00:00
runtimeDeps = [
libglvnd
xorg.libSM
xorg.libICE
xorg.libX11
];
2022-10-20 22:15:29 +00:00
postFixup = ''
2024-11-04 02:39:19 +00:00
wrapProgram "$out/bin/GalaxyBudsClient" \
--prefix PATH : ${glib.bin}/bin
2022-10-20 22:15:29 +00:00
mkdir -p $out/share/icons/hicolor/256x256/apps/
2024-11-04 02:39:19 +00:00
cp -r $src/GalaxyBudsClient/Resources/icon.png $out/share/icons/hicolor/256x256/apps/${meta.mainProgram}.png
2022-10-20 22:15:29 +00:00
'';
2024-10-01 21:06:10 +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-20 22:15:29 +00:00
2022-10-14 13:07:11 +00:00
meta = with lib; {
2022-10-20 22:15:29 +00:00
mainProgram = "GalaxyBudsClient";
2022-10-14 13:07:11 +00: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;
};
}