Unverified Commit 901b4843 authored by Aidan Gauland's avatar Aidan Gauland Committed by GitHub
Browse files

roccat-tools: Fix udev rules (#168463)

parent 2bd7266a
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
{ 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 ];