Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 fetchFromGitHub, 3 lib, 4 stdenv, 5 cmake, 6 lua, 7}: 8stdenv.mkDerivation (finalAttrs: { 9 pname = "sol2"; 10 version = "3.5.0"; 11 src = fetchFromGitHub { 12 owner = "ThePhD"; 13 repo = "sol2"; 14 rev = "v${finalAttrs.version}"; 15 hash = "sha256-bW6HD9WLOWizli6LnrkFZKxiT8IdN0QESlok+xCFz1w="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 lua 21 ]; 22 23 cmakeFlags = [ 24 "-DSOL2_LUA_VERSION=${lua.version}" 25 "-DSOL2_BUILD_LUA=FALSE" 26 ]; 27 28 meta = with lib; { 29 description = "Lua API wrapper with advanced features and top notch performance"; 30 longDescription = '' 31 sol2 is a C++ library binding to Lua. 32 It currently supports all Lua versions 5.1+ (LuaJIT 2.0+ and MoonJIT included). 33 sol2 aims to be easy to use and easy to add to a project. 34 The library is header-only for easy integration with projects, and a single header can be used for drag-and-drop start up. 35 ''; 36 homepage = "https://github.com/ThePhD/sol2"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ mrcjkb ]; 39 }; 40})