Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

razer-cli: init at 2024-04-04 #348822

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11009,6 +11009,12 @@
githubId = 1730718;
name = "Hideaki Kawai";
};
kaylorben = {
email = "[email protected]";
github = "kaylorben";
githubId = 41012641;
name = "Benjamin Kaylor";
};
kazcw = {
email = "[email protected]";
github = "kazcw";
Expand Down
34 changes: 34 additions & 0 deletions pkgs/by-name/ra/razer-cli/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
lib,
python3,
fetchFromGitHub,
xrdb,
}:

# requires openrazer-daemon to be running on the system
# on NixOS hardware.openrazer.enable or pkgs.openrazer-daemon

python3.pkgs.buildPythonApplication rec {
pname = "razer-cli";
version = "2024-04-04";

src = fetchFromGitHub {
owner = "lolei";
repo = pname;
rev = "e4c9a93f012fea2362e18c3374a38bc77a62d86b";
hash = "sha256-HWEYcYYHQs2uZZtiK+BaKU2yc90dJ+FEbR+ohq0Wkpw=";
};

propagatedBuildInputs = [
python3.pkgs.openrazer
xrdb
];

meta = with lib; {
homepage = "https://github.com/LoLei/razer-cli";
description = "Command line interface for controlling Razer devices on Linux";
mainProgram = "razer-cli";
license = licenses.gpl3;
maintainers = [ maintainers.kaylorben ];
};
}