1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

Merge pull request #418 from purcell/smarter-brew-prefix-default

Set brewPrefix defaults according to platform
This commit is contained in:
Daiderd Jordan 2022-01-17 21:42:15 +01:00 committed by GitHub
commit 13d129434d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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