`components.setup` is not a library (#292)
We added a setup component to allow overriding of the config used to
to build Setup.hs. The code that deals with library components
was misidentifying this component as a library.
commitfe5c3a2a04c62f060c0cd1d9e7466008a315b715
authorHamish Mackenzie <Hamish.Mackenzie@iohk.io>
dateTue 5 Nov 2019, 00:52 (7 years ago)
parent7ea94ef
lib/default.nix+1−1
@@ -49,7 +49,7 @@ with haskellLib;
4949 buildableAttrs = lib.filterAttrs (n: comp: comp.buildable or true);
5050 libComp = if comps.library == null || !(comps.library.buildable or true)
5151 then {}
52− else lib.mapAttrs applyLibrary (removeAttrs comps (subComponentTypes ++ [ "all" ]));
52+ else lib.mapAttrs applyLibrary (removeAttrs comps (subComponentTypes ++ [ "all" "setup" ]));
5353 subComps = lib.mapAttrs
5454 (ctype: attrs: lib.mapAttrs (applySubComp ctype) (buildableAttrs attrs))
5555 (builtins.intersectAttrs (lib.genAttrs subComponentTypes (_: null)) comps);