Add fennel-luajit overlay
This commit is contained in:
parent
afdc90f713
commit
a57dac5b77
2 changed files with 16 additions and 0 deletions
|
@ -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)
|
||||
|
|
15
overlay.nix
15
overlay.nix
|
@ -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}"
|
||||
'';
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue