@@ -63,9 +63,10 @@ with haskellLib;
6363 benchmarks = "bench";
6464 };
6565
66− applyComponents = f: comps:
66+ applyComponents = f: config:
6767 let
68− libComp = lib.mapAttrs (cname: f {ctype="lib"; inherit cname;}) (removeAttrs comps subComponentTypes);
68+ comps = config.components;
69+ libComp = lib.mapAttrs (cname: f {ctype="lib"; cname=config.package.identifier.name;}) (removeAttrs comps subComponentTypes);
6970 subComps = lib.mapAttrs
7071 (ctype: lib.mapAttrs (cname: f {inherit cname; ctype=componentPrefix.${ctype};}))
7172 (builtins.intersectAttrs (lib.genAttrs subComponentTypes (_: null)) comps);