ark/lib/devos/mkPackages.nix

21 lines
361 B
Nix
Raw Normal View History

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