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" 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 = [