1
0
Fork 0
nix-overlay/packages/fennel-luajit.nix

17 lines
509 B
Nix
Raw Normal View History

2022-08-06 15:26:50 +00:00
{ system, lib, pkgs }:
pkgs.fennel.overrideAttrs (
let
luaPackages = with pkgs.luajitPackages; [ readline ];
in
o: rec {
buildInputs = [ pkgs.luajit pkgs.makeWrapper ] ++ luaPackages;
postInstall = o.postInstall or "" + ''
wrapProgram $out/bin/fennel \
--suffix LUA_CPATH ";" "${lib.concatMapStringsSep ";" pkgs.luajitPackages.getLuaCPath luaPackages}" \
--suffix LUA_PATH ";" "${lib.concatMapStringsSep ";" pkgs.luajitPackages.getLuaPath luaPackages}"
'';
}
)