Merge pull request #126729 from r-burns/g203-led

authored by Sandro and committed by GitHub b5a9df01 671989e4

+45
+43
pkgs/tools/misc/g203-led/default.nix
··· 1 + { lib, stdenv 2 + , fetchFromGitHub 3 + , python3 4 + }: 5 + stdenv.mkDerivation rec { 6 + pname = "g203-led"; 7 + version = "unstable-2021-05-08"; 8 + src = fetchFromGitHub { 9 + owner = "smasty"; 10 + repo = pname; 11 + rev = "f9d10ba3aa8f9359f928bbab0a2ea00cefc69f4b"; 12 + sha256 = "1fhaimci80xmihg84bgrml61zr56pi9rkxfbs13vvw9dwjf031k0"; 13 + }; 14 + 15 + buildInputs = [ 16 + (python3.withPackages (ps: with ps; [ 17 + pyusb 18 + ])) 19 + ]; 20 + 21 + postPatch = '' 22 + patchShebangs g203-led.py 23 + ''; 24 + 25 + installPhase = '' 26 + runHook preInstall 27 + install -D g203-led.py $out/bin/g203-led 28 + runHook postInstall 29 + ''; 30 + 31 + meta = with lib; { 32 + description = "Logitech G203 Prodigy / G203 LightSync Mouse LED control for Linux"; 33 + longDescription = '' 34 + Allows you to control the LED lighting of your G203 Prodigy 35 + or G203 LightSync Mouse programmatically. 36 + Inspired by and based on g810-led. 37 + ''; 38 + license = licenses.mit; 39 + maintainers = with maintainers; [ r-burns ]; 40 + homepage = "https://github.com/smasty/g203-led"; 41 + platforms = platforms.linux; 42 + }; 43 + }
+2
pkgs/top-level/all-packages.nix
··· 10648 10648 10649 10649 fpc = callPackage ../development/compilers/fpc { }; 10650 10650 10651 + g203-led = callPackage ../tools/misc/g203-led { }; 10652 + 10651 10653 gambit = callPackage ../development/compilers/gambit { }; 10652 10654 gambit-unstable = callPackage ../development/compilers/gambit/unstable.nix { }; 10653 10655 gambit-support = callPackage ../development/compilers/gambit/gambit-support.nix { };