installer and activation: Sanitise PATH
This makes sure that the installation and activation processes are “pure”, i.e. they use only binaries from nixpkgs or ones that come with macOS. Closes #86.
This commit is contained in:
parent
9f18c93771
commit
26bab2fd32
2 changed files with 6 additions and 3 deletions
|
|
@ -40,7 +40,7 @@ in
|
|||
#! ${stdenv.shell}
|
||||
set -e
|
||||
set -o pipefail
|
||||
export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath}
|
||||
export PATH="${pkgs.gnugrep}/bin:${pkgs.coreutils}/bin:@out@/sw/bin:/usr/bin:/bin"
|
||||
|
||||
systemConfig=@out@
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ in
|
|||
#! ${stdenv.shell}
|
||||
set -e
|
||||
set -o pipefail
|
||||
export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath}
|
||||
export PATH="${pkgs.gnugrep}/bin:${pkgs.coreutils}/bin:@out@/sw/bin:/usr/bin:/bin"
|
||||
|
||||
systemConfig=@out@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue