Fix/+/- desktop-tools/usb-drivers/razer-bw-te-ctl

This commit is contained in:
p
2024-11-25 06:15:43 +01:00
parent af24a4ea4c
commit ac7a789e5e
2 changed files with 8 additions and 7 deletions
+44
View File
@@ -0,0 +1,44 @@
{ pkgs ? import <nixpkgs> { }
, local ? false
, full ? true
}:
pkgs.stdenv.mkDerivation rec {
pname = "usb-drivers";
version = "master";
nativeBuildInputs = with pkgs; [
cmake
pkg-config
help2man
];
buildInputs = with pkgs; [
libusb
hidapi
];
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";
};
cmakeFlags = [
"-DSETUID="
];
doCheck = true;
meta = with pkgs.lib; {
description = "User space USB drivers";
homepage = "https://git.janouch.name/p/${pname}";
platforms = platforms.all;
license = licenses.bsd0;
};
}