1
0
Fork 0

Add fennel-luajit overlay

This commit is contained in:
Daniel Kempkens 2022-06-11 17:32:28 +02:00
parent afdc90f713
commit a57dac5b77
2 changed files with 16 additions and 0 deletions

View file

@ -4,6 +4,7 @@
* [agilebits-op](https://app-updates.agilebits.com/product_history/CLI2)
* [cliclick](https://github.com/BlueM/cliclick)
* fennel-luajit
* [phantomjs](https://github.com/ariya/phantomjs)
* [proximity-sort](https://github.com/jonhoo/proximity-sort)
* [q](https://github.com/natesales/q)

View file

@ -8,4 +8,19 @@ let custom = super.callPackage ./packages.nix { }; in
inherit (custom) phantomjs;
inherit (custom) proximity-sort;
inherit (custom) q;
fennel-luajit = super.fennel.overrideAttrs (
let
luaPackages = with super.luajitPackages; [ readline ];
in
o: rec {
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}"
'';
}
);
}