File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ with haskellLib;
44
44
applyLibrary = cname : f { cname = config . package . identifier . name ; ctype = "lib" ; } ;
45
45
applySubComp = ctype : cname : f { inherit cname ; ctype = componentPrefix . ${ ctype } ; } ;
46
46
applyAllComp = f { cname = config . package . identifier . name ; ctype = "all" ; } ;
47
- libComp = lib . mapAttrs applyLibrary ( removeAttrs comps ( subComponentTypes ++ [ "all" ] ) ) ;
47
+ libComp = if comps . library == null then { } else lib . mapAttrs applyLibrary ( removeAttrs comps ( subComponentTypes ++ [ "all" ] ) ) ;
48
48
subComps = lib . mapAttrs
49
49
( ctype : lib . mapAttrs ( applySubComp ctype ) )
50
50
( builtins . intersectAttrs ( lib . genAttrs subComponentTypes ( _ : null ) ) comps ) ;
Original file line number Diff line number Diff line change 160
160
} ;
161
161
in {
162
162
library = mkOption {
163
- type = componentType ;
163
+ type = nullOr componentType ;
164
+ default = null ;
164
165
} ;
165
166
sublibs = mkOption {
166
167
type = attrsOf componentType ;
You can’t perform that action at this time.
0 commit comments