pub-solar-os/lib/devos/mkPackages.nix
2021-04-18 22:16:53 -05:00

21 lines
361 B
Nix

{ lib }:
{ userFlakeSelf }:
{ pkgs }:
let
inherit (userFlakeSelf) overlay overlays;
packagesNames = lib.attrNames (overlay null null)
++ lib.attrNames (lib.concatAttrs
(lib.attrValues
(lib.mapAttrs (_: v: v null null) overlays)
)
);
in
lib.fold
(key: sum: lib.recursiveUpdate sum {
${key} = pkgs.${key};
})
{ }
packagesNames