libgaminggear, roccat-tools: fix builds (#462076)

This commit is contained in:
Aleksana
2025-11-17 02:22:43 +00:00
committed by GitHub
2 changed files with 13 additions and 1 deletions
@@ -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"
+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 = [