Open darbster145 opened 3 months ago
did you already have brew installed before this?
whoops tagged the wrong issue in #39
In my case I see multiple links to brew:
❯ whereis -a brew
brew: /opt/homebrew/bin/brew /run/current-system/sw/bin/brew /usr/local/bin/brew
All of them are symlinks to actual binaries in a nix store:
❯ ls -la /opt/homebrew/bin/brew
lrwxr-xr-x 1 root admin 48 Oct 27 16:45 /opt/homebrew/bin/brew -> /nix/store/smpkqmn0hh0vz5km45n52ccxm4v2isjx-brew
❯ ls -la /usr/local/bin/brew
lrwxr-xr-x 1 root wheel 48 Oct 27 16:45 /usr/local/bin/brew -> /nix/store/jayrc1v4g1jfyl4d97v1pbc3744crp0r-brew
❯ ls -la /run/current-system/sw/bin/brew
lrwxr-xr-x 1 root wheel 57 Dec 31 1969 /run/current-system/sw/bin/brew -> /nix/store/h0b3sjlfgca3khm2fif0gncb8bffb65k-brew/bin/brew
/run/current-system/sw/bin/brew this one is basically a script which checks whether I am on apple silicon and picks one of the other two paths appropriate for my system.
I set up nix-hombrew but it did not install
brew
under/run/current-system/sw/bin
. When I runtype brew
is saysbrew is /usr/local/bin/brew
not/run/current-system/sw/bin
which it is supposed to per the guide. Has anyone ran into this issue? Here is my nix-darwin flake.nix:`{ description = "Example Darwin system flake";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; nix-darwin.url = "github:LnL7/nix-darwin"; nix-darwin.inputs.nixpkgs.follows = "nixpkgs"; nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew"; homebrew-core = { url = "github:homebrew/homebrew-core"; flake = false; }; homebrew-cask = { url = "github:homebrew/homebrew-cask"; flake = false; }; homebrew-bundle = { url = "github:homebrew/homebrew-bundle"; flake = false; }; };
outputs = inputs@{ self, nix-darwin, nixpkgs, nix-homebrew, homebrew-core, homebrew-cask, homebrew-bundle, ... }: let configuration = { pkgs, ... }: {
List packages installed in system profile. To search by name, run:
};
in {
Build darwin flake using:
}; }`