2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, boost-build, lua, boost}:
|
2015-02-22 13:31:35 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-02-22 13:31:35 +00:00
|
|
|
name = "luabind-0.9.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/luabind/luabind/archive/v0.9.1.tar.gz";
|
|
|
|
sha256 = "0e5ead50a07668d29888f2fa6f53220f900c886e46a2c99c7e8656842f05ff2d";
|
|
|
|
};
|
|
|
|
|
2015-02-28 22:37:16 +00:00
|
|
|
patches = [ ./0.9.1_modern_boost_fix.patch ./0.9.1_boost_1.57_fix.patch ./0.9.1_discover_luajit.patch ];
|
2015-02-22 13:31:35 +00:00
|
|
|
|
|
|
|
buildInputs = [ boost-build lua boost ];
|
|
|
|
|
2015-03-17 22:05:13 +00:00
|
|
|
propagatedBuildInputs = [ lua ];
|
|
|
|
|
2015-02-22 13:31:35 +00:00
|
|
|
buildPhase = "LUA_PATH=${lua} bjam release";
|
|
|
|
|
|
|
|
installPhase = "LUA_PATH=${lua} bjam --prefix=$out release install";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit lua;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/luabind/luabind";
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "A library that helps you create bindings between C++ and Lua";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-02-22 13:31:35 +00:00
|
|
|
};
|
|
|
|
}
|