2019-11-30 04:57:58 +01:00
|
|
|
{ nixpkgs ? import ./nixpkgs.nix {}
|
2019-12-01 00:16:48 +01:00
|
|
|
, compiler ? "ghc865"
|
|
|
|
, failOnWarnings ? false
|
|
|
|
}:
|
2019-08-25 19:28:10 +02:00
|
|
|
let
|
2019-12-01 00:16:48 +01:00
|
|
|
inherit (nixpkgs) pkgs lib;
|
|
|
|
inherit (lib) id;
|
2020-01-04 00:30:33 +01:00
|
|
|
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/c6e93d2d641ef48703eabed8ec5cde3d774cb0e5") {};
|
2019-08-25 19:28:10 +02:00
|
|
|
hie = all-hies.selection { selector = p: { inherit (p) ghc865; }; };
|
2019-12-01 00:16:48 +01:00
|
|
|
xanthous =
|
|
|
|
(if failOnWarnings then pkgs.haskell.lib.failOnAllWarnings else id)
|
|
|
|
((pkgs.haskellPackages
|
|
|
|
.extend (import ./haskell-overlay.nix { inherit nixpkgs; })
|
|
|
|
).callPackage (import ./pkg.nix { inherit nixpkgs; }) {}); in
|
2019-08-25 19:28:10 +02:00
|
|
|
xanthous // { inherit hie; }
|