nixpkgs/pkgs/development/libraries/luabind/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
867 B
Nix
Raw Normal View History

2021-11-01 15:06:11 +00:00
{ lib, stdenv, fetchFromGitHub, boost-build, lua, boost }:
2021-11-01 15:06:11 +00:00
stdenv.mkDerivation rec {
pname = "luabind";
version = "0.9.1";
2021-11-01 15:06:11 +00:00
src = fetchFromGitHub {
owner = "luabind";
repo = "luabind";
2021-11-19 18:46:38 +00:00
rev = "v${version}";
2021-11-01 15:06:11 +00:00
sha256 = "sha256-sK1ca2Oj9yXdmxyXeDO3k8YZ1g+HxIXLhvdTWdPDdag=";
};
patches = [ ./0.9.1_modern_boost_fix.patch ./0.9.1_boost_1.57_fix.patch ./0.9.1_discover_luajit.patch ];
buildInputs = [ boost-build lua boost ];
propagatedBuildInputs = [ lua ];
buildPhase = "LUA_PATH=${lua} bjam release";
installPhase = "LUA_PATH=${lua} bjam --prefix=$out release install";
passthru = {
inherit lua;
};
meta = {
homepage = "https://github.com/luabind/luabind";
2015-04-28 08:54:58 +00:00
description = "A library that helps you create bindings between C++ and Lua";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
};
}