os/lib/devos/mkPackages.nix
2021-04-18 19:11:26 -05:00

19 lines
356 B
Nix

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