diff --git a/pkgs/development/tools/toluapp/default.nix b/pkgs/development/tools/toluapp/default.nix index fbe1416808f7..9d3274df3a54 100644 --- a/pkgs/development/tools/toluapp/default.nix +++ b/pkgs/development/tools/toluapp/default.nix @@ -25,6 +25,12 @@ stdenv.mkDerivation rec { ./headers.patch ]; + postPatch = '' + substituteInPlace CMakeLists.txt --replace-fail \ + 'cmake_minimum_required ( VERSION 2.8 )' \ + 'cmake_minimum_required ( VERSION 4.0 )' + ''; + meta = with lib; { description = "Tool to integrate C/Cpp code with Lua"; homepage = "http://www.codenix.com/~tolua/";