os/lib/devos/mkPackages.nix

18 lines
316 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib }:
{ overlay, overlays, pkgs }:
let
packagesNames = lib.attrNames (overlay null null)
2021-04-18 01:35:05 +00:00
++ 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