From bfcf7a7a9207c56ac7c5ec6f29b4c5531986f797 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 3 Feb 2025 12:31:51 +0100 Subject: [PATCH 1/2] galaxy-buds-client: format --- .../by-name/ga/galaxy-buds-client/package.nix | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/ga/galaxy-buds-client/package.nix b/pkgs/by-name/ga/galaxy-buds-client/package.nix index 0db2864821c4..984283260069 100644 --- a/pkgs/by-name/ga/galaxy-buds-client/package.nix +++ b/pkgs/by-name/ga/galaxy-buds-client/package.nix @@ -1,15 +1,16 @@ -{ lib -, stdenv -, buildDotnetModule -, fetchFromGitHub -, dotnetCorePackages -, fontconfig -, glib -, libglvnd -, xorg -, makeWrapper -, makeDesktopItem -, copyDesktopItems +{ + lib, + stdenv, + buildDotnetModule, + fetchFromGitHub, + dotnetCorePackages, + fontconfig, + glib, + libglvnd, + xorg, + makeWrapper, + makeDesktopItem, + copyDesktopItems, }: buildDotnetModule rec { @@ -31,9 +32,15 @@ buildDotnetModule rec { lib.optionals stdenv.hostPlatform.isx86_64 [ "-p:Runtimeidentifier=linux-x64" ] ++ lib.optionals stdenv.hostPlatform.isAarch64 [ "-p:Runtimeidentifier=linux-arm64" ]; - nativeBuildInputs = [ makeWrapper copyDesktopItems ]; + nativeBuildInputs = [ + makeWrapper + copyDesktopItems + ]; - buildInputs = [ (lib.getLib stdenv.cc.cc) fontconfig ]; + buildInputs = [ + (lib.getLib stdenv.cc.cc) + fontconfig + ]; runtimeDeps = [ libglvnd From 9bc53e1f217c271a47928cf6ab730223a8304e33 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 3 Feb 2025 13:47:49 +0100 Subject: [PATCH 2/2] galaxy-buds-client: cleanup --- .../by-name/ga/galaxy-buds-client/package.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/ga/galaxy-buds-client/package.nix b/pkgs/by-name/ga/galaxy-buds-client/package.nix index 984283260069..eb16155be2aa 100644 --- a/pkgs/by-name/ga/galaxy-buds-client/package.nix +++ b/pkgs/by-name/ga/galaxy-buds-client/package.nix @@ -11,6 +11,7 @@ makeWrapper, makeDesktopItem, copyDesktopItems, + nix-update-script, }: buildDotnetModule rec { @@ -20,7 +21,7 @@ buildDotnetModule rec { src = fetchFromGitHub { owner = "ThePBone"; repo = "GalaxyBudsClient"; - rev = version; + tag = version; hash = "sha256-ygxrtRapduvK7qAHZzdHnCijm8mcqOviMl2ddf9ge+Y="; }; @@ -71,12 +72,16 @@ buildDotnetModule rec { }) ]; - meta = with lib; { - mainProgram = "GalaxyBudsClient"; - description = "Unofficial Galaxy Buds Manager for Windows and Linux"; + passthru = { + updateScript = nix-update-script { }; + }; + + meta = { + description = "Unofficial Galaxy Buds Manager"; homepage = "https://github.com/ThePBone/GalaxyBudsClient"; - license = licenses.gpl3; - maintainers = [ maintainers.icy-thought ]; - platforms = platforms.linux; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ icy-thought ]; + platforms = lib.platforms.linux; + mainProgram = "GalaxyBudsClient"; }; }