1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 hidapi,
7 udevCheckHook,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "headsetcontrol";
12 version = "3.1.0";
13
14 src = fetchFromGitHub {
15 owner = "Sapd";
16 repo = "HeadsetControl";
17 rev = version;
18 sha256 = "sha256-9LUqYV0MMTtlFYZCEn81kML5F46GDYWYwoKpO0UORcQ=";
19 };
20
21 nativeBuildInputs = [
22 cmake
23 udevCheckHook
24 ];
25
26 buildInputs = [
27 hidapi
28 ];
29
30 doInstallCheck = true;
31
32 meta = with lib; {
33 description = "Sidetone and Battery status for Logitech G930, G533, G633, G933 SteelSeries Arctis 7/PRO 2019 and Corsair VOID (Pro)";
34 longDescription = ''
35 A tool to control certain aspects of USB-connected headsets on Linux. Currently,
36 support is provided for adjusting sidetone, getting battery state, controlling
37 LEDs, and setting the inactive time.
38 '';
39 homepage = "https://github.com/Sapd/HeadsetControl";
40 license = licenses.gpl3Plus;
41 mainProgram = "headsetcontrol";
42 maintainers = with maintainers; [ leixb ];
43 platforms = platforms.all;
44 };
45}