Skip to content

Commit fce5494

Browse files
authored
galaxy-buds-client: 4.5.4 -> 5.1.0 (#353561)
2 parents 7701a9e + 16f94ec commit fce5494

File tree

2 files changed

+302
-242
lines changed

2 files changed

+302
-242
lines changed

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,34 @@
22
, stdenv
33
, buildDotnetModule
44
, fetchFromGitHub
5+
, dotnetCorePackages
56
, fontconfig
6-
, xorg
7+
, glib
78
, libglvnd
9+
, xorg
10+
, makeWrapper
811
, makeDesktopItem
912
, copyDesktopItems
10-
, graphicsmagick
1113
}:
1214

1315
buildDotnetModule rec {
1416
pname = "galaxy-buds-client";
15-
version = "4.5.4";
17+
version = "5.1.0";
1618

1719
src = fetchFromGitHub {
1820
owner = "ThePBone";
1921
repo = "GalaxyBudsClient";
2022
rev = version;
21-
hash = "sha256-mmhXTtESjc8uNULc9zV2Qy/815BEEL7ybdnjArF2CXY=";
23+
hash = "sha256-9m9H0T4rD6HIvb15h7+Q7SgLk0PkISkN8ojjh7nsiwA=";
2224
};
2325

2426
projectFile = [ "GalaxyBudsClient/GalaxyBudsClient.csproj" ];
2527
nugetDeps = ./deps.nix;
28+
dotnet-sdk = dotnetCorePackages.sdk_8_0;
29+
dotnet-runtime = dotnetCorePackages.runtime_8_0;
2630
dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ];
2731

28-
nativeBuildInputs = [
29-
copyDesktopItems
30-
graphicsmagick
31-
];
32+
nativeBuildInputs = [ makeWrapper copyDesktopItems ];
3233

3334
buildInputs = [ (lib.getLib stdenv.cc.cc) fontconfig ];
3435

@@ -40,8 +41,11 @@ buildDotnetModule rec {
4041
];
4142

4243
postFixup = ''
44+
wrapProgram "$out/bin/GalaxyBudsClient" \
45+
--prefix PATH : ${glib.bin}/bin
46+
4347
mkdir -p $out/share/icons/hicolor/256x256/apps/
44-
gm convert $src/GalaxyBudsClient/Resources/icon_white.ico $out/share/icons/hicolor/256x256/apps/${meta.mainProgram}.png
48+
cp -r $src/GalaxyBudsClient/Resources/icon.png $out/share/icons/hicolor/256x256/apps/${meta.mainProgram}.png
4549
'';
4650

4751
desktopItems = [

0 commit comments

Comments
 (0)