nix-darwin icon indicating copy to clipboard operation
nix-darwin copied to clipboard

Nix fails to create some temporary symlinks

Open Sciencentistguy opened this issue 3 years ago • 2 comments

On aarch64-darwin, I get the following output from nix:

<N> ➜ darwin-rebuild -L --flake /Users/jamie/Git/nixfiles switch
building the system configuration...
error: cannot link '/nix/store/.tmp-link-64480-79859421' to '/nix/store/.links/0i6ypwi0pzkgpxxqprlpyik72zxzkvkzrj7ahqj5b6hmhv2ldxm0': File exists
error: cannot link '/nix/store/.tmp-link-64480-1103639509' to '/nix/store/.links/0dwrq1sy5fawdjjvm0na718awbd10xn6dg3i0xxg9f7r5d9aa968': File exists
...

I have to pass --fallback to darwin-rebuild to get it to work.

Sciencentistguy avatar Jul 31 '22 12:07 Sciencentistguy

Same for me on two systems. One is an intel MBP and the other one aarch64-darwin as well.

dj95 avatar Aug 06 '22 08:08 dj95

This has also come up for me on aarch64-darwin from time to time. In my case running the command again solved the issue. Don't really have any idea what's causing it.

malob avatar Aug 29 '22 18:08 malob