input-output-hk / stack2nix

Generate nix expressions for Haskell projects
MIT License
98 stars 32 forks source link

Bad error when git clone fails #130

Open nh2 opened 6 years ago

nh2 commented 6 years ago

In #129, when nix-prefetch-git fails because of a too old version of nix being used, this is printed (after a successful clone):

error: current Nix store schema is version 10, but I only support 7

Nevertheless, when that happens stack2nix lets it continue, trying to clone my git URL as hg instead, which obviously fails and then gives a bad error message.

domenkozar commented 6 years ago

That's an issue in https://github.com/NixOS/cabal2nix/issues/260#issuecomment-352446779