process-cpp: Fix CMake 4 compatibility

This commit is contained in:
OPNA2608
2025-10-11 15:04:00 +02:00
parent c2b0633149
commit 5bdcd060ed
+11
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitLab,
fetchpatch2,
testers,
gitUpdater,
cmake,
@@ -30,6 +31,16 @@ stdenv.mkDerivation (finalAttrs: {
"dev"
];
patches = [
# Fix compat with CMake 4
# Remove when version > 3.0.2
(fetchpatch2 {
name = "0001-process-cpp-Bump-cmake_minimum_required-to-version-3.10.patch";
url = "https://gitlab.com/ubports/development/core/lib-cpp/process-cpp/-/commit/c374b62cb79d668505c1c8dc55edddc938a573ba.diff";
hash = "sha256-2H6f+EAR7p4mb0ReNl8LaosPVF/CNRm+PiYV7tkOQ/w=";
})
];
postPatch = ''
substituteInPlace data/process-cpp.pc.in \
--replace-fail 'libdir=''${exec_prefix}' 'libdir=''${prefix}' \