2019-03-10 02:32:01 +03:00
|
|
|
{ pkgs ? import <nixpkgs> {} }: let
|
2020-03-22 21:06:16 +03:00
|
|
|
overlay = import ./overlay.nix pkgs.haskell.lib;
|
2019-03-10 02:32:01 +03:00
|
|
|
overrideHaskellPackages = orig: {
|
|
|
|
buildHaskellPackages =
|
|
|
|
orig.buildHaskellPackages.override overrideHaskellPackages;
|
|
|
|
overrides = if orig ? overrides
|
|
|
|
then pkgs.lib.composeExtensions orig.overrides overlay
|
|
|
|
else overlay;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
haskellPackages =
|
|
|
|
pkgs.haskellPackages.override overrideHaskellPackages;
|
2020-03-04 11:26:28 +03:00
|
|
|
haskell865Packages =
|
|
|
|
pkgs.haskell.packages.ghc865.override overrideHaskellPackages;
|
2019-03-10 02:32:01 +03:00
|
|
|
inherit pkgs;
|
|
|
|
}
|