Skip to content

Commit 2a0863c

Browse files
committed
🔨 Add environment variables for luatex
1 parent 271892f commit 2a0863c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

shell.nix

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
{ pkgs ? import <nixpkgs> { } }:
1+
{
2+
pkgs ? import <nixpkgs> { },
3+
}:
24

35
with pkgs;
4-
mkShell {
6+
mkShell rec {
57
name = "prompt-style.lua";
68
buildInputs = [
7-
(luajit.withPackages (
9+
(lua5_3.withPackages (
810
p: with p; [
911
ansicolors
1012
argparse
@@ -16,4 +18,10 @@ mkShell {
1618
]
1719
))
1820
];
21+
shellHook = ''
22+
export LUAINPUTS_luatex='lua;${builtins.elemAt buildInputs 0}/share/lua/5.3'
23+
export CLUAINPUTS_luatex='${builtins.elemAt buildInputs 0}/lib/lua/5.3'
24+
export LUAINPUTS_luahbtex="$LUAINPUTS_luatex"
25+
export CLUAINPUTS_luahbtex="$CLUAINPUTS_luatex"
26+
'';
1927
}

0 commit comments

Comments
 (0)