From 6ad0281a198f7084ce9857931ab99e119a3682c9 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Sat, 23 Mar 2019 19:23:02 +0100 Subject: [PATCH] Use 'or' syntax --- buildable.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildable.nix b/buildable.nix index 9445e5f..2b61b1f 100644 --- a/buildable.nix +++ b/buildable.nix @@ -16,8 +16,8 @@ let ) ); isReserved = n: builtins.elem n ["lib" "overlays" "modules"]; - isBroken = p: ({ meta.broken = false; } // p).meta.broken; - isFree = p: ({ meta.license.free = true; } // p).meta.license.free; + isBroken = p: p.meta.broken or false; + isFree = p: p.meta.license.free or true; in filterSet (n: !(isReserved n)) # filter out non-packages (p: (builtins.isAttrs p)