Page MenuHomePhabricator

[Nix] Install homebrew on nix develop
ClosedPublic

Authored by jon on Jan 19 2023, 11:59 AM.
Tags
None
Referenced Files
F3389320: D6313.id21121.diff
Fri, Nov 29, 6:35 PM
F3388811: D6313.diff
Fri, Nov 29, 4:07 PM
Unknown Object (File)
Tue, Nov 26, 8:30 AM
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)
Oct 29 2024, 11:22 PM
Unknown Object (File)
Oct 29 2024, 11:22 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.