libgaminggear, roccat-tools: fix builds (#462076)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user