You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to override the GHC version, the pkgs.haskellPackages attribute is not overriden, so e.g. callCabal2nix doesn't use the selected version. Additionally, one must select the package from the new compiler's package set:
@siddharthist: How are you invoking callCabal2nix? The reason I ask is that pkgs.haskell.packages.${compiler}.callCabal2nix should work or haskellPackagesNew.callCabal2nix should work inside an override block
However, I still agree that it would probably be simpler to override haskellPackages so I'll still make that change
@Gabriel439 I was using it in such a way that I was getting haskellPackages.callCabal2nix instead of haskell.packages.${compiler}, which makes more sense... Thanks!
When using the suggested format
to override the GHC version, the
pkgs.haskellPackages
attribute is not overriden, so e.g.callCabal2nix
doesn't use the selected version. Additionally, one must select the package from the new compiler's package set:Why not use the following instead?
This provides a more consistent interface for the rest of your Nix files.
The text was updated successfully, but these errors were encountered: