We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 271892f commit 2a0863cCopy full SHA for 2a0863c
shell.nix
@@ -1,10 +1,12 @@
1
-{ pkgs ? import <nixpkgs> { } }:
+{
2
+ pkgs ? import <nixpkgs> { },
3
+}:
4
5
with pkgs;
-mkShell {
6
+mkShell rec {
7
name = "prompt-style.lua";
8
buildInputs = [
- (luajit.withPackages (
9
+ (lua5_3.withPackages (
10
p: with p; [
11
ansicolors
12
argparse
@@ -16,4 +18,10 @@ mkShell {
16
18
]
17
19
))
20
];
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
+ '';
27
}
0 commit comments