Skip to content

No such package in Cabal database while converting a stack project #61

@AlexeyRaga

Description

@AlexeyRaga

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions