Fix error in `all` component when a package has no library component (#176)
commitbf133322bf00bbe15ef2918636a04101dd1a67fc
authorEdward Amsden <edward@blackriversoft.com>
dateSat 15 Jun 2019, 02:21 (7 years ago)
parentffd05fc
lib/default.nix+1−1
@@ -19,7 +19,7 @@ with haskellLib;
1919 foldComponents = tys: f: z: conf:
2020 let
2121 comps = conf.components or {};
22− libComp = acc: if comps ? library then f comps.library acc else acc;
22+ libComp = acc: if (comps.library or null) != null then f comps.library acc else acc;
2323 subComps = acc:
2424 lib.foldr
2525 (ty: acc': foldrAttrVals f acc' (comps.${ty} or {}))