summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/default.nix
blob: 193a2630df3bd91106e7cfb58f31d76d91ba1716 (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
with import ./lib;
let
  overrides = self: super:
    mapNixDir (path: self.callPackage path {}) [
      <stockholm/krebs/5pkgs/haskell>
      ./.
    ] // {
      xmonad-tv = self.callPackage ./xmonad-tv {
        pager = self.desktop-pager;
      };
    };
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;
    });
  }