Skip to content

Commit

Permalink
🧑‍💻 Improve shell.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Feb 4, 2025
1 parent 7d27e12 commit bfec4bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ repos:
hooks:
- id: luacheck
- repo: https://github.com/NixOS/nixfmt
rev: 8d4bd690c247004d90d8554f0b746b1231fe2436
rev: e825e956ae967ee24aa502a90099956d1f8bc1ed
hooks:
- id: nixfmt
5 changes: 3 additions & 2 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ mkShell rec {
ldoc
]
))
(builtins.elemAt texlive.luatex.pkgs 2)
];
shellHook = ''
export LUAINPUTS_luahbtex="${./.}/lua;${builtins.elemAt buildInputs 0}/share/lua/5.3"
export CLUAINPUTS_luahbtex="${builtins.elemAt buildInputs 0}/lib/lua/5.3"
export LUAINPUTS="${./.}/lua;${builtins.elemAt buildInputs 0}/share/lua/5.3"
export CLUAINPUTS="${builtins.elemAt buildInputs 0}/lib/lua/5.3"
'';
}

0 comments on commit bfec4bf

Please sign in to comment.