nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.0 kB view raw
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 # CMake 2.8.3 is deprecated and is no longer supported by CMake > 4 32 # https://github.com/NixOS/nixpkgs/issues/445447 33 postPatch = '' 34 substituteInPlace CMakeLists.txt --replace-fail \ 35 "cmake_minimum_required(VERSION 2.8.3)" \ 36 "cmake_minimum_required(VERSION 3.10)" 37 ''; 38 39 patches = [ ./0.9.1-discover-luajit.patch ]; 40 41 meta = { 42 homepage = "https://github.com/Oberon00/luabind"; 43 description = "Library that helps you create bindings between C++ and Lua"; 44 license = lib.licenses.mit; 45 platforms = lib.platforms.unix; 46 }; 47}