summaryrefslogtreecommitdiff
path: root/Biz/Bild/Deps.nix
blob: 9b62f7dc2b32a2d46be2e30315dc1c0c8c28bc02 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
_: pkgs:

let
  buildCabal = self: name:
      self.callCabal2nix name pkgs.sources.${name} {};
  buildCabalSubdir = self: {name, src ? pkgs.sources.${name}, subdir ? name}:
      self.callCabal2nix name (src + "/${subdir}") {};
in rec
{
  haskell = pkgs.haskell // {
    packages = pkgs.haskell.packages // {
      ghc865 = pkgs.haskell.packages.ghc865.override (old: {
        overrides = with pkgs.pkgs.haskell.lib; self: super:
          pkgs.overridePinnedDeps (buildCabal self) // {
          acid-state = dontCheck super.acid-state; # mac: "too many open files"
          ghcjs-base = null; # otherwise ghc tries to build this via overridePinnedDeps
          servant-auth = buildCabalSubdir self {name = "servant-auth";};
          servant-server = doJailbreak super.servant-server;
          stripe-haskell = dontCheck super.stripe-haskell;
          stripe-http-client = dontCheck super.stripe-http-client;
          temporary = dontCheck super.temporary;
          wai-middleware-metrics = dontCheck super.wai-middleware-metrics;
        };
      });
      ghcjs86 = pkgs.haskell.packages.ghcjs86.override (old: {
        overrides = with pkgs.haskell.lib; self: super:
          pkgs.overridePinnedDeps (buildCabal self) // {
          Glob = dontCheck super.Glob;
          QuickCheck = dontCheck super.QuickCheck;
          aeson = dontCheck super.aeson;
          base-compat-batteries = dontCheck super.base-compat-batteries;
          clay = dontCheck super.clay;
          comonad = dontCheck super.comonad;
          ghcjs-base = dontCheck (buildCabal self "ghcjs-base");
          jsaddle-warp = dontCheck (buildCabalSubdir self {
            name = "jsaddle-warp";
            src = pkgs.sources.jsaddle;
          });
          http-types = dontCheck super.http-types;
          network-uri= dontCheck super.network-uri;
          scientific = dontCheck super.scientific; # takes forever
          servant = dontCheck super.servant;
          servant-auth = buildCabalSubdir self "servant-auth";
          tasty-quickcheck = dontCheck super.tasty-quickcheck;
          temporary = dontCheck super.temporary;
          time-compat = dontCheck super.time-compat;
          vector = dontCheck super.vector;
        };
      });
    };
  };

  guile-opengl = pkgs.callPackage ./Deps/guile-opengl.nix {};
  inspekt3d = pkgs.callPackage ./Deps/inspekt3d.nix {};
}