From c6ccde4031c2e6b85a48de1b2c2b1f410e5237e5 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sat, 15 Nov 2025 16:17:50 -0700 Subject: [PATCH] roccat-tools: fix build CMake 4 has new version requirements, and udev was complaining about bash substitutions it was trying to parse. --- pkgs/by-name/ro/roccat-tools/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ro/roccat-tools/package.nix b/pkgs/by-name/ro/roccat-tools/package.nix index 35e2a6003faf..959637eff371 100644 --- a/pkgs/by-name/ro/roccat-tools/package.nix +++ b/pkgs/by-name/ro/roccat-tools/package.nix @@ -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 = [