packages: support filtering packages per platform

This commit is contained in:
Max Headroom 2022-04-01 16:23:40 +02:00
parent 00ef32a564
commit 604e380d43

View file

@ -7,7 +7,7 @@ let
// patched-inputs
// projects.packages;
in {
packages = all;
packages = pkgs.lib.filterAttrs (_: pkg: pkg ? meta.platforms -> builtins.elem pkgs.system pkg.meta.platforms) all;
inherit (projects) devShells;
}