toxvpn: fix build with cmake4 (#453918)

This commit is contained in:
Yohann Boniface
2025-10-23 18:09:29 +00:00
committed by GitHub
+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";