fix: correct handling of Nix environment variable

This commit is contained in:
2024-11-08 14:37:47 -05:00
parent 2341d7af91
commit c334930099
+3 -1
View File
@@ -41,12 +41,14 @@ end
-- Check for Nix and respond accordingly
local is_nix = os.getenv("IN_NIX_SHELL")
local nix = false
if is_nix == "true" then
opts.front_end = "WebGpu"
nix = true
end
-- Set global variables for convenience
ISNIX = is_nix
ISNIX = nix
MYOS = myos
-- Return the opts table