stockholm/tv/5pkgs/haskell/default.nix
2018-11-30 09:48:36 +01:00

21 lines
497 B
Nix

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;
};
}