-
Notifications
You must be signed in to change notification settings - Fork 79
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
Could not read the output of 'nix-prefetch-url' #392
Comments
On DigitalOcean Nix installed with The Determinate Nix Installer |
Hi @rscorer, thanks for the report. Does this happen consistently? What happens if you run the failing command?
|
When I remember to delete the local ./nix folder, it happens each time - and I tried various nixOS versions too, all with the same result...
Contents of the ./nix folder - maybe this shows how far your tool got?
cat nix/sources.json
cat nix/sources.nix
HTH |
@rscorer thanks, I think it might be an issue with the environment set up by $ $(nix-shell -p niv --run "which niv") init --nixpkgs nixos/nixpkgs --nixpkgs-branch nixos-23.11 |
@nmattia cool, that seems to have worked 👍
If it would help - I can add your public ssh key to my server so you can poke around and, once you stopped laughing at my mistakes, figure out what I've broken!. cat nix/sources.json
cat nix/sources.nix
Proof I'm learning 😉 - also, would this cat shell.nix
|
Hi there, I was also getting this too. Running init as described above doesn't change the contents of sources.json{ "niv": { "branch": "master", "description": "Easy dependency management for Nix projects", "homepage": "https://github.com/nmattia/niv", "owner": "nmattia", "repo": "niv", "rev": "94080ae8286024820c570a2a24ed7c36d7ad04a9", "sha256": "0wlk52zwlrq727x3z1vg9d9qq4zw62ab5jzg4068iqb6hyb0cr0w", "type": "tarball", "url": "https://github.com/nmattia/niv/archive/94080ae8286024820c570a2a24ed7c36d7ad04a9.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixpkgs": { "branch": "release-23.11", "description": "Nix Packages collection", "homepage": "", "owner": "nixos", "repo": "nixpkgs", "rev": "a77ab169a83a4175169d78684ddd2e54486ac651", "sha256": "0r9a87aqhqr7dkhfy5zrx2dgqq11ma2rfvkfwqhz1xqg7y6mcxxg", "type": "tarball", "url": "https://github.com/nixos/nixpkgs/archive/a77ab169a83a4175169d78684ddd2e54486ac651.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "nixpkgs-unstable": { "branch": "nixos-unstable", "description": "Nix Packages collection", "homepage": "", "owner": "NixOS", "repo": "nixpkgs", "rev": "33d1e753c82ffc557b4a585c77de43d4c922ebb5", "sha256": "0s5rrp2spdqdc21h4faahq2h5giaznq8n757j20zl9ap8d7jk03i", "type": "tarball", "url": "https://github.com/NixOS/nixpkgs/archive/33d1e753c82ffc557b4a585c77de43d4c922ebb5.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "rust-overlay": { "branch": "master", "description": "Pure and reproducible nix overlay for binary distributed rust toolchains", "homepage": "", "owner": "oxalica", "repo": "rust-overlay", "rev": "55f468b3d49c5d3321e85f2f9b1158476a2a90fb", "sha256": "124wr1mc835nx9b61cwlpqnka07hxa6l75p24ay7kr9b87y7cypf", "type": "tarball", "url": "https://github.com/oxalica/rust-overlay/archive/55f468b3d49c5d3321e85f2f9b1158476a2a90fb.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, "terraform-overlay": { "branch": "release-23.05", "description": "Temporary overlay for pinning terraform to 1.5.3", "homepage": "", "owner": "nixos", "repo": "nixpkgs", "rev": "a1982c92d8980a0114372973cbdfe0a307f1bdea", "sha256": "0x32xdkfr2gaimvqcx52fhv1smsbkfmcmakbx6plgzpmc8g8k5rb", "type": "tarball", "url": "https://github.com/nixos/nixpkgs/archive/a1982c92d8980a0114372973cbdfe0a307f1bdea.tar.gz", "url_template": "https://github.com///archive/.tar.gz" } }Seems like the root cause is that our |
The same error "Could not read the output of 'nix-prefetch-url'" appeared today, after upgrade my NixOS to 24.11 version:
Looks like it's trying to call the command w/o space between |
Hi, learning nix etc using nix.dev and ran into this issue when executing
nix-shell -p niv --run "niv init --nixpkgs nixos/nixpkgs --nixpkgs-branch nixos-23.11"
The text was updated successfully, but these errors were encountered: