10dda58229
- CMake 4 is no longer retro compatible with versions < 3.5 - Should fix `luabind`, `luabind_luajit` & `osrm-backend`
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
lua,
|
|
boost,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "luabind";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Oberon00";
|
|
repo = "luabind";
|
|
rev = "49814f6b47ed99e273edc5198a6ebd7fa19e813a";
|
|
sha256 = "sha256-JcOsoQHRvdzF2rsZBW6egOwIy7+7C4wy0LiYmbV590Q";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
propagatedBuildInputs = [ lua ];
|
|
|
|
passthru = {
|
|
inherit lua;
|
|
};
|
|
|
|
# CMake 2.8.3 is deprecated and is no longer supported by CMake > 4
|
|
# https://github.com/NixOS/nixpkgs/issues/445447
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt --replace-fail \
|
|
"cmake_minimum_required(VERSION 2.8.3)" \
|
|
"cmake_minimum_required(VERSION 3.10)"
|
|
'';
|
|
|
|
patches = [ ./0.9.1-discover-luajit.patch ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/Oberon00/luabind";
|
|
description = "Library that helps you create bindings between C++ and Lua";
|
|
license = lib.licenses.mit;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|