mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Guard against double-sourcing
This commit is contained in:
parent
44da835ac4
commit
e4f697a17c
1 changed files with 1 additions and 0 deletions
|
@ -184,6 +184,7 @@ in
|
|||
|
||||
system.build.setEnvironment = pkgs.writeText "set-environment" ''
|
||||
# Prevent this file from being sourced by child shells.
|
||||
if [ -n "${__NIX_DARWIN_SET_ENVIRONMENT_DONE:-}" ]; then return; fi
|
||||
export __NIX_DARWIN_SET_ENVIRONMENT_DONE=1
|
||||
|
||||
export PATH=${config.environment.systemPath}
|
||||
|
|
Loading…
Reference in a new issue