1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-05 08:17:01 +00:00
nix-darwin/pkgs/nix-tools
Rafael Kitover f81fbc2bf7
darwin-rebuild: fix sudo invocation on High Sierra
The version of sudo on macOS 10.13 High Sierra does not support the
`--preserve-env=LIST` option syntax, which is used here to preserve
PATH.

Override sudo with a shell function that checks for the availability of
this option syntax, and do not pass PATH otherwise.

Also move the prefix env command in the sudo invocations into the new
sudo function.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
2023-12-22 14:40:13 +00:00
..
darwin-option.sh fix darwin-option descriptions 2023-06-25 13:03:52 +02:00
darwin-rebuild.sh darwin-rebuild: fix sudo invocation on High Sierra 2023-12-22 14:40:13 +00:00
darwin-version.sh Add darwin-version command 2023-07-14 23:06:46 +10:00
default.nix Add darwin-version command 2023-07-14 23:06:46 +10:00