summaryrefslogtreecommitdiff
path: root/nix/haskell-overlay.nix
blob: 1afea87c0299cde31797b22528bd64cc4e871192 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
_: pkgs:

let
  cabalBuilder = self: name: self.callCabal2nix name pkgs.sources.${name} {};
in
{
  haskell = pkgs.haskell // {
    packages = pkgs.haskell.packages // {
      ghc865 = pkgs.haskell.packages.ghc865.override (old: {
        overrides = with pkgs.pkgs.haskell.lib; self: super:
          pkgs.overridePinnedDeps (cabalBuilder self) // {
          wai-middleware-metrics = dontCheck super.wai-middleware-metrics;
        };
      });
      ghcjs = pkgs.haskell.packages.ghcjs.override (old: {
        overrides = with pkgs.haskell.lib; self: super:
          pkgs.overridePinnedDeps (cabalBuilder self) // {
          QuickCheck = dontCheck super.QuickCheck;
          base-compat-batteries = dontCheck super.http-types;
          clay = dontCheck super.clay;
          comonad = dontCheck super.comonad;
          jsaddle-warp = dontCheck (self.callCabal2nix "jsaddle-warp" "${pkgs.sources.jsaddle}/jsaddle-warp" {});
          http-types = dontCheck super.http-types;
          network-uri= dontCheck super.network-uri;
          scientific = dontCheck super.scientific; # takes forever
          servant = dontCheck super.servant;
          tasty-quickcheck = dontCheck super.tasty-quickcheck;
          time-compat = dontCheck super.time-compat;
        };
      });
    };
  };
}