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

26 lines
674 B
Nix

{ lib, utils }:
{ extern, overrides, userFlakeNixOS, userFlakeSelf, userFlakeInputs }:
(utils.lib.eachDefaultSystem
(system:
let
overridePkgs = lib.os.pkgImport userFlakeInputs.override [ ] system;
overridesOverlay = overrides.packages;
overlays = [
(final: prev: {
lib = prev.lib.extend (lfinal: lprev: {
inherit lib;
inherit (lib) nixosSystem;
});
})
(overridesOverlay overridePkgs)
userFlakeSelf.overlay
]
++ extern.overlays
++ (lib.attrValues userFlakeSelf.overlays);
in
{ pkgs = lib.os.pkgImport userFlakeNixOS overlays system; }
)
).pkgs