Skip to content

hledger: doesn't build in haskell-updates #376607

@DamienCassou

Description

@DamienCassou

Nixpkgs version

  • Unstable (25.05)

Describe the bug

In haskell-updates branch, nix-build -A haskellPackages.hledger-lib fails with:

megaparsec >=7.0.0 && <9.7

The reason is that hledger-lib depends on "megaparsec" but megaparsec is at version 9.7 in this branch and hledger-lib requires a version strictly lower than that. Even though hackage-packages.nix indicates that megaparsec is at version 9.6.1:

{
  "megaparsec" = callPackage
    ({ mkDerivation, base, bytestring, case-insensitive, containers
     , criterion, deepseq, mtl, parser-combinators, scientific, text
     , transformers, weigh
     }:
     mkDerivation {
       pname = "megaparsec";
       version = "9.6.1";
     });
}

configuration-ghc-9.8.x overrides that:

{
  megaparsec = doDistribute self.megaparsec_9_7_0;
}

Notify maintainers

@NixOS/haskell


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: haskellGeneral-purpose, statically typed, purely functional programming language

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions