diff --git a/pkgs/development/libraries/luabridge/default.nix b/pkgs/development/libraries/luabridge/default.nix new file mode 100644 index 000000000000..c16f56065ca7 --- /dev/null +++ b/pkgs/development/libraries/luabridge/default.nix @@ -0,0 +1,35 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +}: + +stdenvNoCC.mkDerivation rec { + pname = "luabridge"; + version = "2.8"; + + src = fetchFromGitHub { + owner = "vinniefalco"; + repo = "LuaBridge"; + rev = version; + sha256 = "sha256-gXrBNzE41SH98Xz480+uHQlxHjMHzs23AImxil5LZ0g="; + }; + + dontConfigure = true; + dontBuild = true; + + installPhase = '' + runHook preInstall + mkdir -p $out/include + cp -r Source/LuaBridge $out/include + runHook postInstall + ''; + + meta = with lib; { + description = "A lightweight, dependency-free library for binding Lua to C++"; + homepage = "https://github.com/vinniefalco/LuaBridge"; + changelog = "https://github.com/vinniefalco/LuaBridge/blob/${version}/CHANGES.md"; + platforms = platforms.unix; + license = licenses.mit; + maintainers = with maintainers; [ ivar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dd8cf15b3fc5..4d8f4e25fbe1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21072,6 +21072,8 @@ with pkgs; luabind_luajit = luabind.override { lua = luajit; }; + luabridge = callPackage ../development/libraries/luabridge { }; + luksmeta = callPackage ../development/libraries/luksmeta { asciidoc = asciidoc-full; };