mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDunePackage,
|
|
lua5_1,
|
|
pkg-config,
|
|
}:
|
|
|
|
buildDunePackage {
|
|
pname = "ocaml-lua";
|
|
version = "1.8";
|
|
|
|
minimalOCamlVersion = "4.08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pdonadeo";
|
|
repo = "ocaml-lua";
|
|
# Take the latest commit, as some warnings have been fixed/suppressed
|
|
rev = "f44ad50c88bf999f48a13af663051493c89d7d02";
|
|
hash = "sha256-AXtKrty8JdI+yc+Y9EiufBbySlr49OyXW6wKwmDb0xo=";
|
|
};
|
|
|
|
# ocaml-lua vendors and builds Lua: replace that with the one from nixpkgs
|
|
postPatch = ''
|
|
rm -r src/lua_c
|
|
substituteInPlace src/dune \
|
|
--replace "-Ilua_c/lua515/src" "" \
|
|
--replace "(libraries unix threads lua_c)" \
|
|
"(libraries unix threads) (c_library_flags -llua)"
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ lua5_1 ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Lua bindings for OCaml";
|
|
homepage = "https://pdonadeo.github.io/ocaml-lua";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.kenran ];
|
|
};
|
|
}
|