Unverified Commit efe71b83 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

toxvpn: fix build with cmake4 (#453918)

parents ba9dd39f d6d9fdd7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";