roccat-tools: Fix udev rules (#168463)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Aidan Gauland <aidalgol+git@fastmail.net>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ lib, stdenv, fetchurl, cmake, pkg-config, gettext
|
{ lib, stdenv, fetchurl, cmake, pkg-config, gettext
|
||||||
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
, dbus, dbus-glib, libgaminggear, libgudev, lua
|
||||||
, harfbuzz
|
, harfbuzz, runtimeShell, coreutils, kmod
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@@ -19,6 +19,11 @@ stdenv.mkDerivation rec {
|
|||||||
/return/c \
|
/return/c \
|
||||||
return g_build_path("/", g_get_user_data_dir(), "roccat", NULL);
|
return g_build_path("/", g_get_user_data_dir(), "roccat", NULL);
|
||||||
}' libroccat/roccat_helper.c
|
}' libroccat/roccat_helper.c
|
||||||
|
|
||||||
|
substituteInPlace udev/90-roccat-kone.rules \
|
||||||
|
--replace "/bin/sh" "${runtimeShell}" \
|
||||||
|
--replace "/sbin/modprobe" "${kmod}/bin/modprobe" \
|
||||||
|
--replace "/bin/echo" "${coreutils}/bin/echo"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config gettext ];
|
nativeBuildInputs = [ cmake pkg-config gettext ];
|
||||||
|
|||||||
Reference in New Issue
Block a user