nix-darwin
nix-darwin copied to clipboard
darwin-rebuild: use --no-link for flakes too
This appears to have been special‐cased because of the readlink -f result
, but nix path-info
gives us the same information. (Theoretically there might be an annoying race condition here where Nix refreshes the flake registry between the build
and path-info
errors out, but I think the consequences should be fairly harmless. Also not sure if ${extraLockFlags[@]}
should be passed along here.)
No idea what’s up with the failure.
Rebased to use nix build --json
; thanks to @ElvishJerricco for the pointer! Hopefully CI will actually run this time.
Note that there’s technically a race condition here in the presence of automatic GC, as described in https://github.com/NixOS/nix/pull/2423#issuecomment-471357147, but it was present already and seems difficult to fix, so whatever.
Any update on this?
Also rebased for Christmas (and also no pressure to review/merge over the holidays).
Also, fixes #375 (does this work in a comment?).
@emilazy Can confirm that this works, have been using this fix for close to two months with no issues.
Hey, I've also been using this fix with no issues for a few weeks now. Thanks! Would be great to get it merged 🚀
Could you rebase on master?