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

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

Open
oskin1 opened this issue Nov 12, 2021 · 5 comments
Open

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

oskin1 opened this issue Nov 12, 2021 · 5 comments

Comments

@oskin1
Copy link

oskin1 commented Nov 12, 2021

When running niv add input-output-hk/haskell.nix -n haskellNix the following output is produced:

Adding package haskellNix
  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/input-output-hk/haskell.nix/archive/aaf4e230c69507fb3a1c6fe4c1f6603d659d5543.tar.gz --name aaf4e230c69507fb3a1c6fe4c1f6603d659d5543.tar.gz
  stdout: 
  
  stderr: 
  error: secret key is corrupt
  
  FATAL: One or more packages failed to update:
  haskellNix: ExitFailure 1
ERROR: ExitFailure 1

macOS Monterey 12.0, Aarch64

@oskin1
Copy link
Author

oskin1 commented Nov 12, 2021

niv --version
0.2.19

@nmattia
Copy link
Owner

nmattia commented Nov 15, 2021

Hi! Could it be an issue in your nix configuration?

@oskin1
Copy link
Author

oskin1 commented Nov 15, 2021

Hi! Could it be an issue in your nix configuration?

Nope, here is my /etc/nix/nix.conf

trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
substituters = https://cache.nixos.org https://nixcache.reflex-frp.org https://hydra.iohk.io
build-users-group = nixbld

@nmattia
Copy link
Owner

nmattia commented Nov 19, 2021

I see. It definitely looks like a nix issue (in particular nix-prefetch-url) more than a niv issue. I suggest opening a ticket here, they'll be able to help!

@oskin1
Copy link
Author

oskin1 commented Nov 20, 2021

Thanks!
NixOS/nix#5614

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