2021-11-01 16:06:11 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, boost-build, lua, boost }:
|
2015-02-22 14:31:35 +01:00
|
|
|
|
2021-11-01 16:06:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "luabind";
|
|
|
|
version = "0.9.1";
|
2015-02-22 14:31:35 +01:00
|
|
|
|
2021-11-01 16:06:11 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "luabind";
|
|
|
|
repo = "luabind";
|
2021-11-19 19:46:38 +01:00
|
|
|
rev = "v${version}";
|
2021-11-01 16:06:11 +01:00
|
|
|
sha256 = "sha256-sK1ca2Oj9yXdmxyXeDO3k8YZ1g+HxIXLhvdTWdPDdag=";
|
2015-02-22 14:31:35 +01:00
|
|
|
};
|
|
|
|
|
2015-02-28 23:37:16 +01: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 14:31:35 +01:00
|
|
|
|
|
|
|
buildInputs = [ boost-build lua boost ];
|
|
|
|
|
2015-03-17 23:05:13 +01:00
|
|
|
propagatedBuildInputs = [ lua ];
|
|
|
|
|
2015-02-22 14:31:35 +01:00
|
|
|
buildPhase = "LUA_PATH=${lua} bjam release";
|
|
|
|
|
|
|
|
installPhase = "LUA_PATH=${lua} bjam --prefix=$out release install";
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit lua;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/luabind/luabind";
|
2015-04-28 10:54:58 +02:00
|
|
|
description = "A library that helps you create bindings between C++ and Lua";
|
2021-01-21 18:00:13 +01:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-02-22 14:31:35 +01:00
|
|
|
};
|
|
|
|
}
|