···11+{ fetchFromGitHub
22+, lib
33+, stdenv
44+, cmake
55+, lua
66+}:
77+stdenv.mkDerivation rec{
88+ pname = "sol2";
99+ version = "3.3.1";
1010+ src = fetchFromGitHub {
1111+ owner = "ThePhD";
1212+ repo = "sol2";
1313+ rev = "v${version}";
1414+ hash = "sha256-7QHZRudxq3hdsfEAYKKJydc4rv6lyN6UIt/2Zmaejx8=";
1515+ };
1616+1717+ nativeBuildInputs = [ cmake lua ];
1818+1919+ cmakeFlags = [
2020+ "-DSOL2_LUA_VERSION=${lua.version}"
2121+ "-DSOL2_BUILD_LUA=FALSE"
2222+ ];
2323+2424+ meta = with lib;{
2525+ description = "Lua API wrapper with advanced features and top notch performance";
2626+ longDescription = ''
2727+ sol2 is a C++ library binding to Lua.
2828+ It currently supports all Lua versions 5.1+ (LuaJIT 2.0+ and MoonJIT included).
2929+ sol2 aims to be easy to use and easy to add to a project.
3030+ The library is header-only for easy integration with projects, and a single header can be used for drag-and-drop start up.
3131+ '';
3232+ homepage = "https://github.com/ThePhD/sol2";
3333+ license = licenses.mit;
3434+ maintainers = with maintainers; [ mrcjkb ];
3535+ };
3636+}