Skip to content

Adding pkgconfig-depends: hdf5 pulls in Haskell's hdf5, not system hdf5 #626

@pmiddend

Description

@pmiddend

I have basically the following in my .cabal file (full repo):

executable bla
  main-is: Main.hs
  hs-source-dirs:
      app
  build-depends:
      base >=4.7 && <5

  pkgconfig-depends: hdf5

Note I don't want to have hs-hdf5 in my package, because that's broken in nixpkgs. I want to use nixpkgs.hdf5 and build the bindings myself.

However, the derivation cabal2nix generates includes hdf5 as an input argument, and that resolves to haskellPackages.hdf5.

I was able to fix this weird situation by doing:

          haskellPackages = pkgs.haskellPackages.override
            {
                hdf5 = super.text;
              };
            };

But for hopefully obvious reasons, this is not a good solution.

Any way out of this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions