1{
2 lib,
3 python3,
4 fetchFromGitHub,
5 xrdb,
6}:
7
8# requires openrazer-daemon to be running on the system
9# on NixOS hardware.openrazer.enable or pkgs.openrazer-daemon
10
11python3.pkgs.buildPythonApplication rec {
12 pname = "razer-cli";
13 version = "2.3.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "lolei";
18 repo = "razer-cli";
19 tag = "v${version}";
20 hash = "sha256-uwTqDCYmG/5dyse0tF/CPG+9SlThyRyeHJ0OSBpcQio=";
21 };
22
23 build-system = with python3.pkgs; [
24 setuptools
25 ];
26
27 dependencies = [
28 python3.pkgs.openrazer
29 ];
30
31 buildInputs = [
32 xrdb
33 ];
34
35 meta = {
36 homepage = "https://github.com/LoLei/razer-cli";
37 description = "Command line interface for controlling Razer devices on Linux";
38 mainProgram = "razer-cli";
39 license = lib.licenses.gpl3Only;
40 maintainers = [ lib.maintainers.kaylorben ];
41 platforms = lib.platforms.linux;
42 };
43}