From ab7af6529991d5059f53a535703fb115743e2151 Mon Sep 17 00:00:00 2001 From: LeixB Date: Mon, 8 Apr 2024 18:59:19 +0200 Subject: [PATCH] headsetcontrol: 2.7.0 -> 3.0.0 --- pkgs/tools/audio/headsetcontrol/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/audio/headsetcontrol/default.nix b/pkgs/tools/audio/headsetcontrol/default.nix index 68a799a55c76..d1d7a7541690 100644 --- a/pkgs/tools/audio/headsetcontrol/default.nix +++ b/pkgs/tools/audio/headsetcontrol/default.nix @@ -1,21 +1,29 @@ { stdenv , lib , fetchFromGitHub +, fetchpatch , cmake , hidapi }: stdenv.mkDerivation rec { pname = "headsetcontrol"; - version = "2.7.0"; + version = "3.0.0"; src = fetchFromGitHub { owner = "Sapd"; repo = "HeadsetControl"; rev = version; - sha256 = "sha256-tAndkfLEgj81JWzXtDBNspRxzKAL6XaRw0aDI1XbC1E="; + sha256 = "sha256-N1c94iAJgCPhGNDCGjMINg0AL2wPX5gVIsJ+pzn/l9Y="; }; + patches = [ + (fetchpatch { + url = "https://patch-diff.githubusercontent.com/raw/Sapd/HeadsetControl/pull/337.patch"; + hash = "sha256-18w9BQsMljEA/eY3rnosHvKwhiaF79TrWH/ayuyZMrM="; + }) + ]; + nativeBuildInputs = [ cmake ]; @@ -24,11 +32,6 @@ stdenv.mkDerivation rec { hidapi ]; - /* - Tests depend on having the appropriate headsets connected. - */ - doCheck = false; - meta = with lib; { description = "Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro)"; longDescription = ''