diff options
| author | Daiderd Jordan <daiderd@gmail.com> | 2022-01-17 21:42:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-17 21:42:15 +0100 |
| commit | 13d129434dd3ed179ae2f515ebd0dbd3a82a9be4 (patch) | |
| tree | da8ce76f0a247426b7b2599b995270677ea3e084 /modules | |
| parent | 9a388b6b56d079090ff8e9998e2d4a63e6886f01 (diff) | |
| parent | 7f68974ea4e86f8827e6bcc3d26ad356a1e4f505 (diff) | |
Merge pull request #418 from purcell/smarter-brew-prefix-default
Set brewPrefix defaults according to platform
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/homebrew.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/homebrew.nix b/modules/homebrew.nix index 4d6b2ec..c087cf9 100644 --- a/modules/homebrew.nix +++ b/modules/homebrew.nix @@ -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. ''; |
