Files
nixpkgs/pkgs/by-name/so/sol2/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

41 lines
1.0 KiB
Nix

{
fetchFromGitHub,
lib,
stdenv,
cmake,
lua,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sol2";
version = "3.5.0";
src = fetchFromGitHub {
owner = "ThePhD";
repo = "sol2";
rev = "v${finalAttrs.version}";
hash = "sha256-bW6HD9WLOWizli6LnrkFZKxiT8IdN0QESlok+xCFz1w=";
};
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 ];
};
})