flake: flatten and filter packages w/ flake-utils
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
2ecd417a68
commit
a3293277d9
|
@ -130,9 +130,10 @@
|
||||||
|
|
||||||
packages =
|
packages =
|
||||||
let
|
let
|
||||||
|
inherit (futils.lib) filterPackages flattenTree;
|
||||||
packages = import ./pkgs { inherit pkgs; };
|
packages = import ./pkgs { inherit pkgs; };
|
||||||
isSystem = pkg: builtins.elem system pkg.meta.platforms;
|
flattenedPackages = flattenTree packages;
|
||||||
finalPackages = lib.flip lib.filterAttrs packages (_: isSystem);
|
finalPackages = filterPackages system flattenedPackages;
|
||||||
in
|
in
|
||||||
finalPackages;
|
finalPackages;
|
||||||
}) // {
|
}) // {
|
||||||
|
|
Loading…
Reference in a new issue