1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00

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:
Steve Purcell 2022-01-04 18:00:50 +01:00
parent 9a388b6b56
commit 7f68974ea4

View file

@ -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.
'';