Unverified Commit c6ccde40 authored by Lee Bousfield's avatar Lee Bousfield
Browse files

roccat-tools: fix build

CMake 4 has new version requirements, and udev was complaining about
bash substitutions it was trying to parse.
parent d9657905
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -37,7 +37,11 @@ stdenv.mkDerivation rec {
    substituteInPlace udev/90-roccat-kone.rules \
      --replace "/bin/sh" "${runtimeShell}" \
      --replace "/sbin/modprobe" "${kmod}/bin/modprobe" \
      --replace "/bin/echo" "${coreutils}/bin/echo"
      --replace "/bin/echo" "${coreutils}/bin/echo" \
      --replace '$' '$$' # fix bash variables interpreted as udev substitutions

    substituteInPlace CMakeLists.txt \
      --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12)" "CMAKE_MINIMUM_REQUIRED(VERSION 3.10)"
  '';

  nativeBuildInputs = [