-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshell.nix
36 lines (33 loc) · 903 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
pkgs ? import <nixpkgs> { },
}:
with pkgs;
let
packages = (
p: with p; [
ansicolors
argparse
luafilesystem
luaprompt
busted
ldoc
]
);
in
mkShell rec {
name = "prompt-style.lua";
buildInputs = [
(lua5_3.withPackages packages)
(luajit.withPackages packages)
];
shellHook = ''
export LUAINPUTS_luatex="${./.}/lua;${builtins.elemAt buildInputs 0}/share/lua/5.3"
export CLUAINPUTS_luatex="${builtins.elemAt buildInputs 0}/lib/lua/5.3"
export LUAINPUTS_luajittex="${./.}/lua;${builtins.elemAt buildInputs 1}/share/lua/5.1"
export CLUAINPUTS_luajittex="${builtins.elemAt buildInputs 1}/lib/lua/5.1"
export LUAINPUTS_luahbtex="$LUAINPUTS_luatex"
export CLUAINPUTS_luahbtex="$CLUAINPUTS_luatex"
export LUAINPUTS_luajithbtex="$LUAINPUTS_luajittex"
export CLUAINPUTS_luajithbtex="$CLUAINPUTS_luajittex"
'';
}