1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 lua,
6 boost,
7 cmake,
8}:
9
10stdenv.mkDerivation {
11 pname = "luabind";
12 version = "0.9.1";
13
14 src = fetchFromGitHub {
15 owner = "Oberon00";
16 repo = "luabind";
17 rev = "49814f6b47ed99e273edc5198a6ebd7fa19e813a";
18 sha256 = "sha256-JcOsoQHRvdzF2rsZBW6egOwIy7+7C4wy0LiYmbV590Q";
19 };
20
21 nativeBuildInputs = [ cmake ];
22
23 buildInputs = [ boost ];
24
25 propagatedBuildInputs = [ lua ];
26
27 passthru = {
28 inherit lua;
29 };
30
31 patches = [ ./0.9.1-discover-luajit.patch ];
32
33 meta = {
34 homepage = "https://github.com/Oberon00/luabind";
35 description = "Library that helps you create bindings between C++ and Lua";
36 license = lib.licenses.mit;
37 platforms = lib.platforms.unix;
38 };
39}