Unverified Commit 16f94ecf authored by Icy-Thought's avatar Icy-Thought
Browse files

galaxy-buds-client: 4.5.4 -> 5.1.0

parent 07b3bef8
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -2,33 +2,34 @@
, stdenv
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, fontconfig
, xorg
, glib
, libglvnd
, xorg
, makeWrapper
, makeDesktopItem
, copyDesktopItems
, graphicsmagick
}:

buildDotnetModule rec {
  pname = "galaxy-buds-client";
  version = "4.5.4";
  version = "5.1.0";

  src = fetchFromGitHub {
    owner = "ThePBone";
    repo = "GalaxyBudsClient";
    rev = version;
    hash = "sha256-mmhXTtESjc8uNULc9zV2Qy/815BEEL7ybdnjArF2CXY=";
    hash = "sha256-9m9H0T4rD6HIvb15h7+Q7SgLk0PkISkN8ojjh7nsiwA=";
  };

  projectFile = [ "GalaxyBudsClient/GalaxyBudsClient.csproj" ];
  nugetDeps = ./deps.nix;
  dotnet-sdk = dotnetCorePackages.sdk_8_0;
  dotnet-runtime = dotnetCorePackages.runtime_8_0;
  dotnetFlags = [ "-p:Runtimeidentifier=linux-x64" ];

  nativeBuildInputs = [
    copyDesktopItems
    graphicsmagick
  ];
  nativeBuildInputs = [ makeWrapper copyDesktopItems ];

  buildInputs = [ stdenv.cc.cc.lib fontconfig ];

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

  postFixup = ''
    wrapProgram "$out/bin/GalaxyBudsClient" \
      --prefix PATH : ${glib.bin}/bin

    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
    cp -r $src/GalaxyBudsClient/Resources/icon.png $out/share/icons/hicolor/256x256/apps/${meta.mainProgram}.png
  '';

  desktopItems = [
+289 −233

File changed.

Preview size limit exceeded, changes collapsed.