1
0
Fork 0
nix-overlay/packages/liblpeg-darwin.nix

24 lines
569 B
Nix
Raw Normal View History

2023-05-10 23:04:05 +00:00
{ pkgs }:
2023-05-03 15:16:35 +00:00
pkgs.stdenv.mkDerivation {
pname = "liblpeg";
inherit (pkgs.luajitPackages.lpeg) version src;
nativeBuildInputs = [ pkgs.fixDarwinDylibNames ];
buildInputs = [ pkgs.luajit ];
patches = [ ../patches/liblpeg-makefile.patch ];
installPhase = ''
mkdir -p $out/lib
install -D lpeg.dylib $out/lib/lpeg.dylib
'';
meta = {
homepage = "http://www.inf.puc-rio.br/~roberto/lpeg.html";
description = "Parsing Expression Grammars For Lua";
license.fullName = "MIT/X11";
platforms = [ "x86_64-darwin" "aarch64-darwin" ];
};
}