Hi. I’ve been searching for this topic a lot and I’ve found some clues but I’m still not sure about how I would overwrite ghc compiler version with Nix. I want to build a project with ghc 8.10.1 but the default in right now is 8.8.3. I have a packages.nix file which I use to override haskell packages. So I’m assuming I would do it there
let
nixpkgs = import <nixpkgs> { inherit config; };
config = {
allowBroken = true;
packageOverrides = pkgs:
let
hl = pkgs.haskell.lib;
t = pkgs.lib.trivial;
dontAndDisable = (t.flip t.pipe)
[hl.dontCheck
hl.dontCoverage
hl.dontHaddock
];
in rec {
haskellPackages = pkgs.haskellPackages.override {
overrides = self: super: {
}
}