~ben/web

ref: c257206142f887246608fd5ebbf4cc9fe518ba9c web/default.nix -rw-r--r-- 521 bytes View raw
c2572061Ben Sima update deploy location 1 year, 4 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ compiler ? "ghc843"
, doHaddock ? false
, doBenchmark ? false
, doCheck ? true
, withHoogle ? true
, pkgs ? import "${builtins.fetchTarball (import ./pkgs.nix)}" {}
}:

with pkgs;

haskell.packages.${compiler}.developPackage {
  root = ./.;
  overrides = with haskell.lib; self: super: {
    ghc =
      if withHoogle
      then super.ghc // {withPackages = super.ghc.withHoogle;}
      else super.ghc;
    ghcWithPackages =
      if withHoogle
      then self.ghc.withPackages
      else super.ghcWithPackages;
  };
}