mirror of
https://github.com/ilyakooo0/haskell.nix.git
synced 2024-10-26 09:37:17 +03:00
d71e854dea
Fixes #1487
66 lines
1.8 KiB
Nix
66 lines
1.8 KiB
Nix
{ sources, ...}@args:
|
|
|
|
let
|
|
overlays = {
|
|
wine = import ./wine.nix;
|
|
#ghcjs = import ./ghcjs-asterius-triple.nix;
|
|
#python = import ./python.nix;
|
|
haskell = import ./haskell.nix args;
|
|
hackage-quirks = import ./hackage-quirks.nix;
|
|
bootstrap = import ./bootstrap.nix;
|
|
ghc = import ./ghc.nix;
|
|
ghc-packages = import ./ghc-packages.nix;
|
|
hydra = import ./hydra.nix args;
|
|
darwin = import ./darwin.nix;
|
|
windows = import ./windows.nix;
|
|
armv6l-linux = import ./armv6l-linux.nix;
|
|
musl = import ./musl.nix;
|
|
android = import ./android.nix;
|
|
tools = import ./tools.nix;
|
|
emscripten = import ./emscripten.nix;
|
|
nix-prefetch-git-minimal = import ./nix-prefetch-git-minimal.nix;
|
|
gobject-introspection = import ./gobject-introspection.nix;
|
|
hix = import ./hix.nix;
|
|
eval-packages = import ./eval-packages.nix combined;
|
|
ghcjs = import ./ghcjs.nix;
|
|
};
|
|
|
|
composeExtensions = f: g: final: prev:
|
|
let
|
|
fApplied = f final prev;
|
|
prev' = prev // fApplied;
|
|
in fApplied // g final prev';
|
|
|
|
ordered = with overlays; [
|
|
# Hide nixpkgs haskell and haskellPackages from the haskell-nix overlays.
|
|
# This should prevent us inadvertently depending on them.
|
|
(_: prev: {
|
|
haskell = { };
|
|
haskellPackages = { };
|
|
haskell-nix-prev = prev;
|
|
})
|
|
wine
|
|
haskell
|
|
hackage-quirks
|
|
bootstrap
|
|
ghc
|
|
ghc-packages
|
|
darwin
|
|
windows
|
|
armv6l-linux
|
|
musl
|
|
android
|
|
tools
|
|
emscripten
|
|
nix-prefetch-git-minimal
|
|
ghcjs
|
|
gobject-introspection
|
|
hix
|
|
eval-packages
|
|
hydra
|
|
# Restore nixpkgs haskell and haskellPackages
|
|
(_: prev: { inherit (prev.haskell-nix-prev) haskell haskellPackages; })
|
|
];
|
|
combined = builtins.foldl' composeExtensions (_: _: { }) ordered;
|
|
in overlays // { inherit combined; }
|