From d460bbda07e619fd2c166ed8923980dd6c2db95b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?=
Date: Wed, 5 Jul 2023 00:42:08 +0200
Subject: [PATCH] Add razer-bw-te-ctl
---
razer-bw-te-ctl-master.nix | 39 ++++++++++++++++++++++++++++++++++++++
sensei-raw-ctl-master.nix | 1 -
2 files changed, 39 insertions(+), 1 deletion(-)
create mode 100644 razer-bw-te-ctl-master.nix
diff --git a/razer-bw-te-ctl-master.nix b/razer-bw-te-ctl-master.nix
new file mode 100644
index 0000000..b64550b
--- /dev/null
+++ b/razer-bw-te-ctl-master.nix
@@ -0,0 +1,39 @@
+{ pkgs ? import { }
+, local ? false
+, full ? true
+}:
+pkgs.stdenv.mkDerivation rec {
+ pname = "razer-bw-te-ctl";
+ version = "master";
+
+ nativeBuildInputs = with pkgs; [
+ cmake
+ pkg-config
+ help2man
+ ];
+
+ buildInputs = with pkgs; [
+ libusb
+ ];
+
+ src = if local then
+ builtins.path {
+ path = ../${pname}/git;
+ name = "${pname}";
+ }
+ else
+ fetchGit {
+ url = "https://git.janouch.name/p/${pname}.git";
+ submodules = true;
+ ref = "master";
+ };
+
+ doCheck = true;
+
+ meta = with pkgs.lib; {
+ description = "Razer BlackWidow Tournament Edition control utility";
+ homepage = "https://git.janouch.name/p/${pname}";
+ platforms = platforms.all;
+ license = licenses.bsd0;
+ };
+}
diff --git a/sensei-raw-ctl-master.nix b/sensei-raw-ctl-master.nix
index d861d0c..fa453b4 100644
--- a/sensei-raw-ctl-master.nix
+++ b/sensei-raw-ctl-master.nix
@@ -54,4 +54,3 @@ pkgs.stdenv.mkDerivation rec {
license = licenses.bsd0;
};
}
-