Here is a part of my stack.yaml:
extra-deps:
- avro-0.3.0.4
Running stackage2nix --with-stackage ./stack.yaml gives me this error:
stackage2nix: user error (No such package avro-0.3.0.4 in the cabal database. Did you run cabal update?)
The package is not on stackage, but it is definitely on hackage.
Looks like the error is not specific to avro, other extra-deps packages cause the same error.
I don't see how cabal update is relevant to a Stack project, but I have tried this:
$ stack exec bash
bash-3.2$ cabal update
bash-3.2$ stackage2nix --with-stackage ./stack.yaml
But it didn't help
Here is a part of my
stack.yaml:Running
stackage2nix --with-stackage ./stack.yamlgives me this error:The package is not on
stackage, but it is definitely onhackage.Looks like the error is not specific to
avro, other extra-deps packages cause the same error.I don't see how
cabal updateis relevant to a Stack project, but I have tried this:But it didn't help