nixpkgs/pkgs/by-name/so/sol2/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

37 lines
1.0 KiB
Nix

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