nmattia / niv

Easy dependency management for Nix projects
https://github.com/nmattia/niv
MIT License
1.58k stars 77 forks source link

FATAL: Could not read output of 'nix-prefetch-url' #397

Closed t-a-m-e closed 5 months ago

t-a-m-e commented 5 months ago

The command returned a message stating it was a bug, and asking to create a ticket..so here it is. I read through the previous issue, and am still struggling to get it working. The command that worked for them is not working for me. I'm working through the intro to nix tutorials, the command doesn't make sense to me even after searching for it..

Initializing Creating nix/sources.nix Creating nix/sources.json Importing 'nixpkgs' ... Adding package nixpkgs FATAL: Could not read the output of 'nix-prefetch-url'. This is a bug. Please create a ticket:

  https://github.com/nmattia/niv/issues/new

Thanks! I'll buy you a beer.
command: 
nix-prefetch-url--unpack https://github.com/nixos/nixpkgs/archive/e402c3eb6d88384ca6c52ef1c53e61bdc9b84ddd.tar.gz --name e402c3eb6d88384ca6c52ef1c53e61bdc9b84ddd.tar.gz
stdout: 

stderr: 
warning: unknown setting 'upgrade-nix-store-path-url'
error: failed to extract archive (Write failed)

FATAL: One or more packages failed to update:
nixpkgs: ExitFailure 1

ERROR: ExitFailure 1 ERROR: ExitFailure 1

nmattia commented 5 months ago

hi @t-a-m-e sorry I was a bit slow to reply. Did you resolve the issue?