toxvpn: fix build with cmake4

This commit is contained in:
Rafael Ieda
2025-10-20 14:21:35 -03:00
parent fac5e90ad9
commit d6d9fdd742
+5
View File
@@ -37,6 +37,11 @@ stdenv.mkDerivation {
cmakeFlags = lib.optionals stdenv.hostPlatform.isLinux [ "-DSYSTEMD=1" ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 2.6)" "cmake_minimum_required(VERSION 3.10)"
'';
postInstall = "cp ${./bootstrap.json} $out/share/toxvpn/";
installCheckPhase = "$out/bin/toxvpn -h";