Skip to content
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

Error while updating the lock file of flake 'github:DeterminateSystems src/pages/start/3.nix-develop.mdx #289

Closed
1oglop1 opened this issue Sep 10, 2023 · 4 comments

Comments

@1oglop1
Copy link

1oglop1 commented Sep 10, 2023

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

@grahamc
Copy link
Member

grahamc commented Sep 10, 2023 via email

@1oglop1
Copy link
Author

1oglop1 commented Sep 10, 2023

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 🤷

@1oglop1 1oglop1 closed this as completed Sep 10, 2023
@grahamc
Copy link
Member

grahamc commented Sep 10, 2023 via email

@1oglop1
Copy link
Author

1oglop1 commented Sep 10, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants