Add razer-bw-te-ctl

This commit is contained in:
Přemysl Eric Janouch 2023-07-05 00:42:08 +02:00
parent 8e0826b8b3
commit d460bbda07
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,39 @@
{ pkgs ? import <nixpkgs> { }
, 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;
};
}

View File

@ -54,4 +54,3 @@ pkgs.stdenv.mkDerivation rec {
license = licenses.bsd0;
};
}