Page MenuHomePhabricator

[Nix] Install homebrew on nix develop
ClosedPublic

Authored by jon on Jan 19 2023, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:33 AM
Unknown Object (File)
Thu, Nov 14, 4:33 AM
Unknown Object (File)
Sat, Nov 9, 8:20 AM
Unknown Object (File)
Tue, Oct 29, 11:22 PM
Unknown Object (File)
Tue, Oct 29, 11:22 PM
Unknown Object (File)
Tue, Oct 29, 11:22 PM
Unknown Object (File)
Tue, Oct 29, 11:21 PM
Unknown Object (File)
Mon, Oct 28, 9:33 AM
Subscribers

Details

Reviewers
varun
atul
bartek
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMMdb7f5c0ff667: [Nix] Install homebrew on nix develop
Summary

It's needed for reactotron and potentially direnv.
Since Homebrew is easy to install through the command line,
may as well automate the process if it's missing

Depends on D6311

https://linear.app/comm/issue/ENG-2752

Test Plan

In new terminal:

# Remove /usr/local/bin from path, which is where homebrew is normally installed
export PATH=/usr/bin
# Bring in bash not from /usr/local/bin
. <(/nix/var/nix/profiles/default/bin/nix print-dev-env .#devShell)

./scripts/install_homebrew_macos.sh
# Should install homebrew, can be ran if homebrew is already installed

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jan 19 2023, 11:59 AM

Shouldn't matter much in the context of this particular diff, just a side note when looking at the test plan. In non-M1 mac, Homebrew uses /usr/local/bin, but for M1 (Apple silicon in general) it is /opt/homebrew/bin

Shouldn't matter much in the context of this particular diff, just a side note when looking at the test plan. In non-M1 mac, Homebrew uses /usr/local/bin, but for M1 (Apple silicon in general) it is /opt/homebrew/bin

Fun. :)

This revision is now accepted and ready to land.Jan 23 2023, 10:25 AM
This revision was automatically updated to reflect the committed changes.