hotpatch: Fix minimum cmake requirement (#462223)

This commit is contained in:
Silvan Mosberger
2025-11-16 13:39:24 +00:00
committed by GitHub

View File

@@ -34,6 +34,12 @@ stdenv.mkDerivation rec {
patches = [ ./no-loader-test.patch ]; patches = [ ./no-loader-test.patch ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
'cmake_minimum_required(VERSION 2.6 FATAL_ERROR)' \
'cmake_minimum_required(VERSION 4.0)'
'';
meta = with lib; { meta = with lib; {
description = "Hot patching executables on Linux using .so file injection"; description = "Hot patching executables on Linux using .so file injection";
mainProgram = "hotpatcher"; mainProgram = "hotpatcher";