1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

Fix homebrew.brewPrefix default value on Apple Silicon

This commit is contained in:
Malo Bourgon 2022-01-17 16:07:09 -08:00
parent af65e183c3
commit bef3621501

View file

@ -54,7 +54,7 @@ in
brewPrefix = mkOption {
type = types.str;
default = if pkgs.stdenv.hostPlatform.darwinArch == "aarch64" then "/opt/homebrew/bin" else "/usr/local/bin";
default = if pkgs.stdenv.hostPlatform.isAarch64 then "/opt/homebrew/bin" else "/usr/local/bin";
description = ''
Customize path prefix where executable of <command>brew</command> is searched for.
'';