Use 'or' syntax
This commit is contained in:
parent
c57e61235d
commit
6ad0281a19
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ let
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
isReserved = n: builtins.elem n ["lib" "overlays" "modules"];
|
isReserved = n: builtins.elem n ["lib" "overlays" "modules"];
|
||||||
isBroken = p: ({ meta.broken = false; } // p).meta.broken;
|
isBroken = p: p.meta.broken or false;
|
||||||
isFree = p: ({ meta.license.free = true; } // p).meta.license.free;
|
isFree = p: p.meta.license.free or true;
|
||||||
in filterSet
|
in filterSet
|
||||||
(n: !(isReserved n)) # filter out non-packages
|
(n: !(isReserved n)) # filter out non-packages
|
||||||
(p: (builtins.isAttrs p)
|
(p: (builtins.isAttrs p)
|
||||||
|
|
Loading…
Reference in a new issue