stockholm/krebs/5pkgs/haskell/default.nix
2021-10-12 20:53:45 +02:00

19 lines
414 B
Nix

self: super:
with self.stockholm.lib;
let
overrides = self: super: mapNixDir (path: self.callPackage path {}) ./.;
in
{
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;
};
}