summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/haskell/default.nix
blob: fcede2f9cc7292590a8a3a53a5d85264e8df2b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 { inherit overrides; }
          else value
      ) super.haskell.packages;
    };
    haskellPackages = super.haskellPackages.override {
      inherit overrides;
    };
  }