Skip to content

Do not call hpack if .cabal exists #626

Open
@kirelagin

Description

@kirelagin

I have a package where both package.yaml and .cabal are committed into the repository (as recommended nowadays). When I try to build it with haskell.nix, I get:

<pkgname>.cabal was generated with a newer version of hpack, please upgrade and try again.

From a quick look, it seems that there is some code that is meant to call hpack only if there is no .cabal file around, but, I guess, it does something else.

I have worked it around for now by doing:

{
  pkgname.cabal-generator = pkgs.lib.mkForce null;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions