From bbd77673e2f6e5627225fd221c14f0cb37b1727e Mon Sep 17 00:00:00 2001 From: Dusk Banks Date: Mon, 13 Jan 2025 06:46:05 -0800 Subject: [PATCH] remove potentially harmful `LUA_PATH` override This behavior should be accomplished by wrapping a specific Lua interpreter. Signed-off-by: Dusk Banks --- flake.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 486e30d..a21c2df 100644 --- a/flake.nix +++ b/flake.nix @@ -102,9 +102,7 @@ (luajit.withPackages (ps: with ps; [ luasocket lpeg inspect luaunit tl lqc ])) ]; - shellHook = self.checks.${system}.pre-commit-check.shellHook + '' - export LUA_PATH='${luajit}/share/lua/5.1/?.lua;./?.lua' - ''; + shellHook = ''${self.checks.${system}.pre-commit-check.shellHook}''; }; default = alicorn; };