summaryrefslogtreecommitdiff
path: root/Biz/Bild/Haskell.nix
blob: c744848132b9a8239d2cc6a32394c50dd16805cf (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
_self: super:

let
  inherit (import ./Constants.nix) ghcCompiler;

  buildCabal = sel: name: sel.callCabal2nix name super.sources.${name} { };

in rec {

  haskell = super.haskell // {
    packages = super.haskell.packages // {
      "${ghcCompiler}" = super.haskell.packages."${ghcCompiler}".override
        (_old: {
          overrides = with super.pkgs.haskell.lib;
            sel: sup:
            super.overridePinnedDeps (buildCabal sel) // {
              ap-normalize = dontCheck sup.ap-normalize;
              clay = doJailbreak sup.clay;
              cmark = doJailbreak sup.cmark;
              docopt = buildCabal sel "docopt";
              linear-generics = doJailbreak sup.linear-generics;
              req = doJailbreak sup.req;
              servant-auth = doJailbreak sup.servant-auth;
              servant-auth-server = dontCheck sup.servant-auth-server;
              shellcheck = doJailbreak sup.shellcheck;
              string-qq = doJailbreak sup.string-qq;
              syb-with-class = doJailbreak sup.syb-with-class;
              th-abstraction = doJailbreak sup.th-abstraction;
            };
        });
    };
  };

  ormolu = super.haskellPackages.ormolu;

}