2020-07-08 13:54:01 +03:00
|
|
|
{ checkMaterialization ? false # Allows us to easily switch on materialization checking
|
|
|
|
, system ? builtins.currentSystem
|
|
|
|
, sourcesOverride ? {}
|
|
|
|
, ... }@args: rec {
|
2021-07-28 03:38:03 +03:00
|
|
|
sources = (import ./nix/sources.nix { inherit pkgs; }) // sourcesOverride;
|
2020-07-08 13:54:01 +03:00
|
|
|
config = import ./config.nix;
|
|
|
|
overlays = [ allOverlays.combined ] ++ (
|
|
|
|
if checkMaterialization == true
|
|
|
|
then [(
|
|
|
|
final: prev: {
|
|
|
|
haskell-nix = prev.haskell-nix // {
|
|
|
|
checkMaterialization = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)]
|
|
|
|
else []
|
2021-07-28 03:38:03 +03:00
|
|
|
);
|
2020-07-08 13:54:01 +03:00
|
|
|
allOverlays = import ./overlays args;
|
|
|
|
nixpkgsArgs = { inherit config overlays system; };
|
|
|
|
pkgs = import sources.nixpkgs nixpkgsArgs;
|
2021-02-03 12:38:33 +03:00
|
|
|
pkgs-unstable = import sources.nixpkgs-unstable nixpkgsArgs;
|
2021-06-26 08:58:06 +03:00
|
|
|
hix = import ./hix/default.nix;
|
2020-03-31 04:12:40 +03:00
|
|
|
}
|