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)
Tue, Dec 17, 6:49 AM
Unknown Object (File)
Tue, Dec 17, 6:49 AM
Unknown Object (File)
Tue, Dec 17, 6:48 AM
Unknown Object (File)
Tue, Dec 17, 6:46 AM
Unknown Object (File)
Sun, Dec 8, 7:59 PM
Unknown Object (File)
Mon, Dec 2, 3:38 PM
Unknown Object (File)
Fri, Nov 29, 6:35 PM
Unknown Object (File)
Fri, Nov 29, 4:07 PM
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.