Nix fails to build haskell-opencv with ghc-8.4.2 using Cabal-2.2

Hi there,

I’m upgrading the haskell-opencv library to use cabal-version: 2.2 because that version supports the new cxx-options field that I would like to use. So I’m trying to build the library using GHC-8.4.2 because that ships with Cabal-2.2.

Unfortunately I’m getting a link error when building the library using nix-build. Surprisingly building inside a nix-shell succeeds. Details and error messages are in this GitHub issue:

Any Haskell-Nix users that can help me out?

Thanks,

Bas