-
I'm trying to use GHC 9.4.2 to compile my project, i.e. haskellProjects.default = {
root = ./.;
haskellPackages = pkgs.haskell.packages.ghc942;
source-overrides = {
hspec-contrib = "0.5.1.1";
};
}; However, this gives me the following error:
Any clue how to fix this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
BTW, this is particularly confusing because my cabal file doesn't depend on hspec or hspec-contrib. The only dependency is |
Beta Was this translation helpful? Give feedback.
-
Note to self: I should explain Unlike That said, if you are trying to use a specific version on Hackage, you should instead use haskellProjects.default =
overrides = self: super: {
hspec-contrib = self.callHackage "hspec-contrib" "0.5.1.1" {};
};
}; By the way, you can also use this overlay directly if you want GHC 9.4 support: https://horizon-haskell.net/ ... see srid/haskell-template#55 |
Beta Was this translation helpful? Give feedback.
Note to self: I should explain
source-overrides
in https://srid.ca/haskell-flake/dependencyUnlike
overrides
, when usingsource-overrides
you are required to specify a Nixpath
value. This could be a flake input (withflake = false;
); see "ema", "heist-extra" and "tailwind" in https://github.com/EmaApps/emanote/blob/master/flake.nix as an example.That said, if you are trying to use a specific version on Hackage, you should instead use
overrides
andcallHackage
:By the way, you can also use this overlay directly if you want GHC 9.4 support: https://horizon-has…