flake: flatten and filter packages w/ flake-utils
All checks were successful
continuous-integration/drone/push Build is passing

Instead of my home-grown solution, use one that has been upstreamed.
This commit is contained in:
Bruno BELANYI 2021-07-14 21:48:50 +02:00
parent 2ecd417a68
commit a3293277d9

View file

@ -130,9 +130,10 @@
packages =
let
inherit (futils.lib) filterPackages flattenTree;
packages = import ./pkgs { inherit pkgs; };
isSystem = pkg: builtins.elem system pkg.meta.platforms;
finalPackages = lib.flip lib.filterAttrs packages (_: isSystem);
flattenedPackages = flattenTree packages;
finalPackages = filterPackages system flattenedPackages;
in
finalPackages;
}) // {