roccat-tools: fix build

CMake 4 has new version requirements, and udev was complaining about
bash substitutions it was trying to parse.
This commit is contained in:
Lee Bousfield
2025-11-15 16:21:10 -07:00
parent d965790579
commit c6ccde4031
+5 -1
View File
@@ -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 = [