pub-solar-os/lib/devos/mkPkgs.nix

26 lines
611 B
Nix
Raw Normal View History

2021-04-19 02:45:08 +00:00
{ lib, utils }:
{ self, nixos, inputs, extern, overrides }:
2021-04-18 01:46:20 +00:00
(utils.lib.eachDefaultSystem
(system:
let
overridePkgs = lib.os.pkgImport inputs.override [ ] system;
overridesOverlay = overrides.packages;
overlays = [
(final: prev: {
lib = prev.lib.extend (lfinal: lprev: {
2021-04-18 01:35:05 +00:00
inherit lib;
inherit (lib) nixosSystem;
});
})
(overridesOverlay overridePkgs)
self.overlay
]
++ extern.overlays
++ (lib.attrValues self.overlays);
in
{ pkgs = lib.os.pkgImport nixos overlays system; }
)
).pkgs