tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
g203-led: init at 20210508-git
Ryan Burns
4 years ago
eacb00cf
740d9fe0
+45
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
g203-led
default.nix
top-level
all-packages.nix
+43
pkgs/tools/misc/g203-led/default.nix
reviewed
···
1
1
+
{ lib, stdenv
2
2
+
, fetchFromGitHub
3
3
+
, python3
4
4
+
}:
5
5
+
stdenv.mkDerivation rec {
6
6
+
pname = "g203-led";
7
7
+
version = "unstable-2021-05-08";
8
8
+
src = fetchFromGitHub {
9
9
+
owner = "smasty";
10
10
+
repo = pname;
11
11
+
rev = "f9d10ba3aa8f9359f928bbab0a2ea00cefc69f4b";
12
12
+
sha256 = "1fhaimci80xmihg84bgrml61zr56pi9rkxfbs13vvw9dwjf031k0";
13
13
+
};
14
14
+
15
15
+
buildInputs = [
16
16
+
(python3.withPackages (ps: with ps; [
17
17
+
pyusb
18
18
+
]))
19
19
+
];
20
20
+
21
21
+
postPatch = ''
22
22
+
patchShebangs g203-led.py
23
23
+
'';
24
24
+
25
25
+
installPhase = ''
26
26
+
runHook preInstall
27
27
+
install -D g203-led.py $out/bin/g203-led
28
28
+
runHook postInstall
29
29
+
'';
30
30
+
31
31
+
meta = with lib; {
32
32
+
description = "Logitech G203 Prodigy / G203 LightSync Mouse LED control for Linux";
33
33
+
longDescription = ''
34
34
+
Allows you to control the LED lighting of your G203 Prodigy
35
35
+
or G203 LightSync Mouse programmatically.
36
36
+
Inspired by and based on g810-led.
37
37
+
'';
38
38
+
license = licenses.mit;
39
39
+
maintainers = with maintainers; [ r-burns ];
40
40
+
homepage = "https://github.com/smasty/g203-led";
41
41
+
platforms = platforms.linux;
42
42
+
};
43
43
+
}
+2
pkgs/top-level/all-packages.nix
reviewed
···
10624
10624
10625
10625
fpc = callPackage ../development/compilers/fpc { };
10626
10626
10627
10627
+
g203-led = callPackage ../tools/misc/g203-led { };
10628
10628
+
10627
10629
gambit = callPackage ../development/compilers/gambit { };
10628
10630
gambit-unstable = callPackage ../development/compilers/gambit/unstable.nix { };
10629
10631
gambit-support = callPackage ../development/compilers/gambit/gambit-support.nix { };