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

This commit is contained in:
Přemysl Eric Janouch 2024-11-25 06:15:39 +01:00
parent af24a4ea4c
commit ac7a789e5e
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 8 additions and 7 deletions

View File

@ -43,13 +43,9 @@ pkgs.stdenv.mkDerivation rec {
ref = "master";
};
# It's a weird mess, gdm.pc.in includes the subdirectory in includedir.
patchPhase = ''
sed -i 's|gdm-user-switching.h>|gdm/&|' gdm-switch-user.c
'';
cmakeFlags = [
"-DSYSTEMD_UNITDIR=${placeholder "out"}/lib/systemd/system"
"-DSETUID="
];
doCheck = true;

View File

@ -3,7 +3,7 @@
, full ? true
}:
pkgs.stdenv.mkDerivation rec {
pname = "razer-bw-te-ctl";
pname = "usb-drivers";
version = "master";
nativeBuildInputs = with pkgs; [
@ -14,6 +14,7 @@ pkgs.stdenv.mkDerivation rec {
buildInputs = with pkgs; [
libusb
hidapi
];
src = if local then
@ -28,10 +29,14 @@ pkgs.stdenv.mkDerivation rec {
ref = "master";
};
cmakeFlags = [
"-DSETUID="
];
doCheck = true;
meta = with pkgs.lib; {
description = "Razer BlackWidow Tournament Edition control utility";
description = "User space USB drivers";
homepage = "https://git.janouch.name/p/${pname}";
platforms = platforms.all;
license = licenses.bsd0;