From d9657905790ce95a3e4939e852ae5be9ebfa4018 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sat, 15 Nov 2025 16:17:30 -0700 Subject: [PATCH 1/2] libgaminggear: fix build with new cmake version --- pkgs/by-name/li/libgaminggear/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/li/libgaminggear/package.nix b/pkgs/by-name/li/libgaminggear/package.nix index 46daaf734fb6..504f9e8483bf 100644 --- a/pkgs/by-name/li/libgaminggear/package.nix +++ b/pkgs/by-name/li/libgaminggear/package.nix @@ -1,6 +1,7 @@ { lib, stdenv, + fetchpatch2, fetchurl, cmake, pkg-config, @@ -23,6 +24,13 @@ stdenv.mkDerivation rec { sha256 = "0jf5i1iv8j842imgiixbhwcr6qcwa93m27lzr6gb01ri5v35kggz"; }; + patches = [ + (fetchpatch2 { + url = "https://aur.archlinux.org/cgit/aur.git/plain/cmake_min_version.patch?h=libgaminggear&id=bfe7db62db76dbcefa8ba47640a35c80183f91d3"; + hash = "sha256-loznfqxlucYlDUSYotMdUBmivKu+DD+OYhRIWpcrSgE="; + }) + ]; + outputs = [ "dev" "out" From c6ccde4031c2e6b85a48de1b2c2b1f410e5237e5 Mon Sep 17 00:00:00 2001 From: Lee Bousfield Date: Sat, 15 Nov 2025 16:17:50 -0700 Subject: [PATCH 2/2] 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 = [