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 // patched-inputs
// projects.packages; // projects.packages;
in { in {
packages = all; packages = pkgs.lib.filterAttrs (_: pkg: pkg ? meta.platforms -> builtins.elem pkgs.system pkg.meta.platforms) all;
inherit (projects) devShells; inherit (projects) devShells;
} }