nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 31 lines 855 B view raw
1{stdenv, fetchurl, boost-build, lua, boost}: 2 3stdenv.mkDerivation rec { 4 name = "luabind-0.9.1"; 5 6 src = fetchurl { 7 url = "https://github.com/luabind/luabind/archive/v0.9.1.tar.gz"; 8 sha256 = "0e5ead50a07668d29888f2fa6f53220f900c886e46a2c99c7e8656842f05ff2d"; 9 }; 10 11 patches = [ ./0.9.1_modern_boost_fix.patch ./0.9.1_boost_1.57_fix.patch ./0.9.1_discover_luajit.patch ]; 12 13 buildInputs = [ boost-build lua boost ]; 14 15 propagatedBuildInputs = [ lua ]; 16 17 buildPhase = "LUA_PATH=${lua} bjam release"; 18 19 installPhase = "LUA_PATH=${lua} bjam --prefix=$out release install"; 20 21 passthru = { 22 inherit lua; 23 }; 24 25 meta = { 26 homepage = https://github.com/luabind/luabind; 27 description = "A library that helps you create bindings between C++ and Lua"; 28 license = stdenv.lib.licenses.mit; 29 platforms = stdenv.lib.platforms.linux; 30 }; 31}