diff options
author | Marc Jakobi <marc.jakobi@tiko.energy> | 2023-10-13 00:55:00 +0200 |
---|---|---|
committer | Marc Jakobi <marc.jakobi@tiko.energy> | 2023-10-13 00:59:18 +0200 |
commit | c701eeb3170af4d5ee64e9abdf8b5df9aa571d00 (patch) | |
tree | 2aa7ef571dd618733b7fcf85eb258143fad85daf /pkgs/development/libraries/sol2 | |
parent | d78d7cbc64dab0df8ce73a90ed91f1681079cc22 (diff) |
luaPackages.toml: init at 0.3.0
Diffstat (limited to 'pkgs/development/libraries/sol2')
-rw-r--r-- | pkgs/development/libraries/sol2/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/sol2/default.nix b/pkgs/development/libraries/sol2/default.nix new file mode 100644 index 0000000000000..c086d37e6c32e --- /dev/null +++ b/pkgs/development/libraries/sol2/default.nix @@ -0,0 +1,36 @@ +{ fetchFromGitHub +, lib +, stdenv +, cmake +, lua +}: +stdenv.mkDerivation rec{ + pname = "sol2"; + version = "3.3.1"; + src = fetchFromGitHub { + owner = "ThePhD"; + repo = "sol2"; + rev = "v${version}"; + hash = "sha256-7QHZRudxq3hdsfEAYKKJydc4rv6lyN6UIt/2Zmaejx8="; + }; + + nativeBuildInputs = [ cmake lua ]; + + cmakeFlags = [ + "-DSOL2_LUA_VERSION=${lua.version}" + "-DSOL2_BUILD_LUA=FALSE" + ]; + + meta = with lib;{ + description = "Lua API wrapper with advanced features and top notch performance"; + longDescription = '' + sol2 is a C++ library binding to Lua. + It currently supports all Lua versions 5.1+ (LuaJIT 2.0+ and MoonJIT included). + sol2 aims to be easy to use and easy to add to a project. + The library is header-only for easy integration with projects, and a single header can be used for drag-and-drop start up. + ''; + homepage = "https://github.com/ThePhD/sol2"; + license = licenses.mit; + maintainers = with maintainers; [ mrcjkb ]; + }; +} |