Error while updating the lock file of flake 'github:DeterminateSystems `src/pages/start/3.nix-develop.mdx`
1oglop1 opened this issue · comments
Hi, it's my 2nd day learning about nix.
Quite honestly the nix space feels really daunting with the amount of overwhelming information and contradictions in docs etc..
I was hoping this project would be a great start for complete newbies like myself.
However on the page 3 I was supposed to run the command nix develop "github:DeterminateSystems/zero-to-nix#example"
but the result was
error:
… while updating the lock file of flake 'github:DeterminateSystems/zero-to-nix/33bf4aa4e8dd22db397eadb7955c184697996706'
error: unsupported tarball input attribute 'rev'
MacOS nix version nix-2.16.1
I tried to upgrade nix
but I received another bunch of weird errors I could not afford to debug.
Even though after all the errors, nix --version
said it is 2.17 I did not trust it and reinstalled it.
I suspect some MacOS system update broke nix, I did reinstall using the script from this project and the command started to work 🤷
I suspect it may have to do something with any of these issues:
I went through the "normal" upgrade process
sudo -i sh -c 'nix-channel --update && nix-env --install --attr nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'
And it finished like this
unpacking channels...
....
building '/nix/store/0hr1jcjmllynliknqyd28ydxvfk4v3w4-user-environment.drv'...
/Library/LaunchDaemons/org.nixos.nix-daemon.plist: service already loaded
Load failed: 37: Operation already in progress
➜ ~/projects/rust_things/tmp nix --version
nix (Nix) 2.17.0
I hope that the workaround mentioned here is enough to keep nix
running on MacOS NixOS/nix#3616 (comment)