1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

toluapp: Fix includes for newer Lua versions

See https://github.com/LuaDist/toluapp/pull/2
This commit is contained in:
Tim Steinbach 2019-01-25 22:56:55 -05:00
parent c3e995fa73
commit 9e3db4df2c
No known key found for this signature in database
GPG key ID: 6C654787275A64F1
2 changed files with 16 additions and 1 deletions

View file

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
buildInputs = [ lua ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ];
patches = [ ./environ-and-linux-is-kinda-posix.patch ./headers.patch ];
preConfigure = ''
substituteInPlace config_posix.py \

View file

@ -0,0 +1,15 @@
diff --git a/include/tolua++.h b/include/tolua++.h
index ed53449..f57d56d 100644
--- a/include/tolua++.h
+++ b/include/tolua++.h
@@ -43,8 +43,8 @@ extern "C" {
typedef int lua_Object;
-#include "lua.h"
-#include "lauxlib.h"
+#include <lua.h>
+#include <lauxlib.h>
struct tolua_Error
{