devos/overlays/overrides.nix
2022-10-20 18:26:28 +02:00

23 lines
614 B
Nix

channels: final: prev:
let
latest = channels.latest;
in
{
__dontExport = true; # overrides clutter up actual creations
inherit (latest)
asdf;
latest = latest;
haskellPackages = prev.haskellPackages.override
(old: {
overrides = prev.lib.composeExtensions (old.overrides or (_: _: { })) (hfinal: hprev:
let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version;
in
{
# same for haskell packages, matching ghc versions
inherit (channels.latest.haskell.packages."ghc${version}")
haskell-language-server;
});
});
}