stockholm/krebs/5pkgs/haskell/default.nix

18 lines
417 B
Nix
Raw Normal View History

with import <stockholm/lib>;
2017-08-06 19:33:10 +00:00
let
2018-11-30 08:40:53 +00:00
overrides = self: super: mapNixDir (path: self.callPackage path {}) ./.;
2017-08-06 19:33:10 +00:00
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 {
2017-08-06 19:33:10 +00:00
inherit overrides;
};
}