nmattia / niv

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

Unable to add ghc 8.10.3. Pasted the shell output. #301

Closed ChandraKoduru closed 3 years ago

ChandraKoduru commented 3 years ago

I am NixOS

nixos-version: 20.09.2405.e065200fc90 (Nightingale)

niv add ghc -v 8.10.3 -t 'https://downloads.haskell.org/~ghc/<version>/ghc-<version>-i386-deb8-linux.tar.xz'
Adding package ghc
  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-urlhttps://downloads.haskell.org/~ghc/8.10.3/ghc-8.10.3-i386-deb8-linux.tar.xz --name ghc-8.10.3-i386-deb8-linux.tar.xz
  stdout: 

  stderr: 
  error: unable to download 'https://downloads.haskell.org/~ghc/8.10.3/ghc-8.10.3-i386-deb8-linux.tar.xz': HTTP error 404

  FATAL: One or more packages failed to update:
  ghc: ExitFailure 1
ERROR: ExitFailure 1
michaelpj commented 3 years ago

It says that fetchurl found that URL to be a 404. Does it work for you?

ChandraKoduru commented 3 years ago

I haven't thought about it much. It said "this is a bug" and I left it at that. Let me check and get back to you.

refnil commented 3 years ago

I can see in https://downloads.haskell.org/ghc/8.10.3/ that ghc 8.10.3 changed from deb8 to deb9. Closing the issue.