From 23f67915d12aaf0759b022a4c47b730b4687b7d2 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Sat, 23 Mar 2019 19:05:38 +0100 Subject: [PATCH] Only build free packages --- buildable.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buildable.nix b/buildable.nix index 35778c2..21af140 100644 --- a/buildable.nix +++ b/buildable.nix @@ -17,10 +17,12 @@ 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; in filterSet (n: !(isReserved n)) # filter out non-packages (p: (builtins.isAttrs p) && !(isBroken p) + && isFree p ) (import ./default.nix { inherit pkgs; })