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