2021-01-12 03:59:49 +01:00
|
|
|
# Packages inherited are imported in hosts/default.nix, and are pulled from
|
2020-08-02 06:08:41 +02:00
|
|
|
# nixpkgs master instead of the default nixos release. This doesn't actually
|
|
|
|
# install them, just creates an overlay to pull them from master if they are
|
|
|
|
# installed by the user elsewhere in the configuration.
|
2021-01-12 03:59:49 +01:00
|
|
|
pkgs: final: prev:
|
|
|
|
{
|
|
|
|
inherit (pkgs)
|
2021-02-04 02:58:58 +01:00
|
|
|
manix;
|
2021-01-12 03:59:49 +01:00
|
|
|
|
2021-01-12 04:07:18 +01:00
|
|
|
haskellPackages = prev.haskellPackages.override {
|
|
|
|
overrides = hfinal: hprev:
|
|
|
|
let version = prev.lib.replaceChars [ "." ] [ "" ] prev.ghc.version;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
# same for haskell packages, matching ghc versions
|
|
|
|
inherit (pkgs.haskell.packages."ghc${version}")
|
|
|
|
haskell-language-server;
|
|
|
|
};
|
|
|
|
};
|
2021-01-12 03:59:49 +01:00
|
|
|
}
|