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' #5614

Open
oskin1 opened this issue Nov 20, 2021 · 1 comment
Open

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

oskin1 opened this issue Nov 20, 2021 · 1 comment

Comments

@oskin1
Copy link

oskin1 commented Nov 20, 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

Environment:
macOS Monterey 12.0, Aarch64

Originally the issue was opened in niv repository (nmattia/niv#341), but it seems the issue is in nix itself.

@oskin1 oskin1 added the bug label Nov 20, 2021
@oskin1
Copy link
Author

oskin1 commented Nov 20, 2021

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

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

No branches or pull requests

1 participant