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

23 lines
569 B
Nix

{ pkgs }:
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" ];
};
}