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:
parent
c3e995fa73
commit
9e3db4df2c
|
@ -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 \
|
||||
|
|
15
pkgs/development/tools/toluapp/headers.patch
Normal file
15
pkgs/development/tools/toluapp/headers.patch
Normal 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
|
||||
{
|
Loading…
Reference in a new issue