1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00
nix-darwin/pkgs
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-installer Update pkgs/darwin-installer/default.nix 2023-08-13 18:04:12 +08:00
darwin-uninstaller Install darwin-uninstall by default, which includes the 'empty' config it switches to 2023-11-16 17:47:24 +11:00
nix-tools darwin-rebuild: fix sudo invocation on High Sierra 2023-12-22 14:40:13 +00:00