Only build free packages
This commit is contained in:
parent
f751ec55c7
commit
23f67915d1
1 changed files with 2 additions and 0 deletions
|
@ -17,10 +17,12 @@ 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: ({ meta.broken = false; } // p).meta.broken;
|
||||||
|
isFree = p: ({ meta.license.free = true; } // p).meta.license.free;
|
||||||
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)
|
||||||
&& !(isBroken p)
|
&& !(isBroken p)
|
||||||
|
&& isFree p
|
||||||
)
|
)
|
||||||
(import ./default.nix { inherit pkgs; })
|
(import ./default.nix { inherit pkgs; })
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue