fix: correct handling of Nix environment variable
This commit is contained in:
+3
-1
@@ -41,12 +41,14 @@ end
|
|||||||
|
|
||||||
-- Check for Nix and respond accordingly
|
-- Check for Nix and respond accordingly
|
||||||
local is_nix = os.getenv("IN_NIX_SHELL")
|
local is_nix = os.getenv("IN_NIX_SHELL")
|
||||||
|
local nix = false
|
||||||
if is_nix == "true" then
|
if is_nix == "true" then
|
||||||
opts.front_end = "WebGpu"
|
opts.front_end = "WebGpu"
|
||||||
|
nix = true
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Set global variables for convenience
|
-- Set global variables for convenience
|
||||||
ISNIX = is_nix
|
ISNIX = nix
|
||||||
MYOS = myos
|
MYOS = myos
|
||||||
|
|
||||||
-- Return the opts table
|
-- Return the opts table
|
||||||
|
|||||||
Reference in New Issue
Block a user