-
-
Notifications
You must be signed in to change notification settings - Fork 503
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 error with nix-darwin - "Error: invalid option: --no-lock" #1369
Comments
Updating nix-darwin fixed it for me. |
@bensleveritt I have the same issue and I installed nix from scratch today, how exactly can I "update" nix-darwin? I've already tried:
Maybe the issue can only be solved by updating to "unstable", but I wouldn't want to. Thanks! |
The Update now leads to the following error for me, when doing a rebuild:
|
@Zeirison If you’re using a flake, then run
@rafiv This is code you’ve added to your activation scripts (apparently it’s something people have copy‐pasted from a YouTube video a lot or something?). Using |
I encountered this error out of the blue today. |
Worked like a charm, thanks @RobbieMcKinstry |
|
For anyone coming from Google because of the "Error: invalid option: --no-lock" The see: Seems like it was a noop before so I assume it is safe to just remove the (unrelated to nix / nix-darwin) |
- fix: Fix for "invalid option: --no-lock" (LnL7/nix-darwin#1369)
I'd recommend trying For me almost every time I do full flakes update I have to then cherry-pick broken packages from older versions, but maybe that's just because I'm on |
I have a macOS 15.3.1 (Sequioia) machine. I've installed Nix using the Determinate Systems NIx installer (not the Determinate distro, but vanilla Nix) and installed nix-darwin per the nix-darwin README.
I then edited
/etc/nix-darwin/flake.nix
, to add a Homebrew section:After running
darwin-rebuild switch
, I get an error from Homebrew aboutError: invalid option: --no-lock
:The text was updated successfully, but these errors were encountered: