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-05-11 00:04:04 +02:00
|
|
|
inherit (pkgs) fetchurl;
|
|
|
|
all-hies = import (fetchTarball {
|
|
|
|
url = "https://github.com/infinisil/all-hies/archive/4b6aab017cdf96a90641dc287437685675d598da.tar.gz";
|
|
|
|
sha256 = "0ap12mbzk97zmxk42fk8vqacyvpxk29r2wrnjqpx4m2w9g7gfdya";
|
|
|
|
}) {};
|
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; }
|