diff options
author | Aidan Gauland <aidalgol@users.noreply.github.com> | 2022-08-26 08:24:32 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 22:24:32 +0200 |
commit | 901b48436b644a252b391cea44eeb618da88778b (patch) | |
tree | 5b80452eabd0d018dad2de9fbaf784cadf6020d4 /pkgs/os-specific/linux/roccat-tools | |
parent | 2bd7266a48fffdd8f26eba4c5533bbdf078d3db6 (diff) | |
download | nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar.gz nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar.bz2 nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar.lz nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar.xz nixpkgs-901b48436b644a252b391cea44eeb618da88778b.tar.zst nixpkgs-901b48436b644a252b391cea44eeb618da88778b.zip |
roccat-tools: Fix udev rules (#168463)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Aidan Gauland <aidalgol+git@fastmail.net>
Diffstat (limited to 'pkgs/os-specific/linux/roccat-tools')
-rw-r--r-- | pkgs/os-specific/linux/roccat-tools/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/roccat-tools/default.nix b/pkgs/os-specific/linux/roccat-tools/default.nix index bea79c2007d..ef18dda1191 100644 --- a/pkgs/os-specific/linux/roccat-tools/default.nix +++ b/pkgs/os-specific/linux/roccat-tools/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchurl, cmake, pkg-config, gettext , dbus, dbus-glib, libgaminggear, libgudev, lua -, harfbuzz +, harfbuzz, runtimeShell, coreutils, kmod }: stdenv.mkDerivation rec { @@ -19,6 +19,11 @@ stdenv.mkDerivation rec { /return/c \ return g_build_path("/", g_get_user_data_dir(), "roccat", NULL); }' 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 ]; |