-
-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
homebrew: add masPackage
option
#1314
Comments
I just ran into this while working on activation Since we have FWIW, Nixpkgs itself is not going to be supporting macOS 11 for more than a few months longer; see #1312 (comment) for more details and what options you have. If you can use something like OCLP to run a supported OS version on your old Mac I’d highly recommend that, as Apple haven’t been releasing security patches for macOS 11 for almost a year and a half now. There’s no real guarantee that Homebrew will keep |
Thanks, @emilazy. I put up a PR to upgrade I wasn’t aware of OCLP. My initial attempt to get the old machine upgraded wasn’t successful, but I’ll have to dig into that later. Really appreciate you bringing it to my attention. |
Currently, setting `homebrew.masApps` causes `"mas"` to automatically be added to `homebrew.brews`. Users who want to use Homebrew only for managing App Store apps and casks, like me, can override this by setting `homebrew.brews = lib.mkForce [ ];` and adding Nixpkgs’ `mas` to their `environment.systemPackages`. When the activation script path no longer depends on the built configuration’s `environment.systemPackages`, this will no longer work. Since this was originally added before `mas` was packaged in Nixpkgs and we now have a perfectly serviceable binary package, we can add it to the `$PATH` when invoking Homebrew and skip the automatic formula installation. As the Homebrew `bin` directory still comes first, users who specifically want the formula can restore the previous behaviour by explicitly adding `"mas"` to `homebrew.brews`. Closes: LnL7#1314
When
homebrew.masApps
isn’t empty, thehomebrew
module adds"mas"
tohomebrew.brews
.Unfortunately, the
mas
formula is failing for me on an old Mac (stuck on Big Sur / macOS 11). But I can installpkgs.mas
from Nixpkgs just fine, andbrew
will use that no problem.The output is a bit funny. First Homebrew fails to install
mas
but then it later happily installs apps using
mas
.The most unfortunate bit is that this success-despite-failure isn’t enough to get nix-darwin activation to complete, so I need to do something to get the module to not install
mas
viabrew
.I was thinking an option like
homebrew.masPackage
. If it’s set to a derivation, just add that toenvironment.systemPackages
(or maybe scope it tobrew
?). Otherwise, do the current behavior. I lean toward the default value beingpkgs.mas
(I try to only use Homebrew if I can’t get the package otherwise), but I also understand ifnull
(i.e., the current behavior) is preferred.The text was updated successfully, but these errors were encountered: