1
0
Fork 0
dotfiles/overlay-patches.nix

17 lines
563 B
Nix
Raw Normal View History

2022-04-20 14:27:26 +00:00
self: super: {
fennel-luajit = super.fennel.overrideAttrs (
2022-04-24 18:09:54 +00:00
let
luaPackages = with super.luajitPackages; [ readline ];
in
2022-04-20 14:27:26 +00:00
o: rec {
2022-04-24 18:09:54 +00:00
buildInputs = [ super.luajit super.makeWrapper ] ++ luaPackages;
postInstall = o.postInstall or "" + ''
wrapProgram $out/bin/fennel \
--suffix LUA_CPATH ";" "${super.lib.concatMapStringsSep ";" super.luajitPackages.getLuaCPath luaPackages}" \
--suffix LUA_PATH ";" "${super.lib.concatMapStringsSep ";" super.luajitPackages.getLuaPath luaPackages}"
'';
2022-04-20 14:27:26 +00:00
}
);
}