summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/default.nix
blob: 33fd2506a39b4374b1da1c6f3cc9977a5c44008d (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
with import <stockholm/lib>;
let
  overrides = self: super:
    mapNixDir (path: self.callPackage path {}) [
      <stockholm/krebs/5pkgs/haskell>
      ./.
    ];
in
  self: super: {
    haskell = super.haskell // {
      packages = mapAttrs (name: value:
        if hasAttr "override" value
          then value.override (old: {
            overrides =
              composeExtensions (old.overrides or (_: _: { })) overrides;
          })
          else value
      ) super.haskell.packages;
    };
    haskellPackages = super.haskellPackages.override (old: {
      overrides =
        composeExtensions (old.overrides or (_: _: { })) overrides;
    });
  }