size: 294 B
| 1 | { pkgs ? import <nixpkgs> {} }: |
| 2 | let |
| 3 | myLua = pkgs.lua5_1; |
| 4 | myLuaWithPackages = myLua.withPackages(ps: with ps; [ |
| 5 | luaposix |
| 6 | ]); |
| 7 | in |
| 8 | pkgs.mkShell { |
| 9 | packages = [ pkgs.hyperfine pkgs.perl pkgs.luarocks myLuaWithPackages |
| 10 | ]; |
| 11 | shellHook = '' |
| 12 | luarocks config lua_version 5.1 |
| 13 | ''; |
| 14 | } |