Closed codygman closed 4 years ago
Hi! So, I'm not sure this is really a niv issue but I can try to help. When you're using callCabal2nix
, it generates a nix file that takes hlint's dependencies as arguments, and then (IIRC) uses callPackage
(the haskell one) on that. So that means your haskell package set does not have ghc-lib-parser-ex
. There are various ways to add packages, but most likely you'll need to override the haskell package set. This ticket and the manual are good starting points.
First I tried this code with shelllcheck and it worked:
Then I tried with hlint since I knew it could possibly be more complicated and depend on boot packages or ghc version specific things:
It returns:
I have a feeling maybe I can provide ghc-lib-parser-ex... maybe via a different overlay.. but I'm not sure if that should be necessary.