Set brewPrefix defaults according to platform
This allows homebrew support to work out of the box on Apple Silicon machines. See #322
This commit is contained in:
parent
9a388b6b56
commit
7f68974ea4
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ in
|
|||
|
||||
brewPrefix = mkOption {
|
||||
type = types.str;
|
||||
default = "/usr/local/bin";
|
||||
default = if pkgs.stdenv.hostPlatform.darwinArch == "aarch64" then "/opt/homebrew/bin" else "/usr/local/bin";
|
||||
description = ''
|
||||
Customize path prefix where executable of <command>brew</command> is searched for.
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue