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

28 lines
664 B
Nix
Raw Normal View History

2021-04-02 02:10:24 +00:00
{ lib, dev, nixpkgs, self, inputs, ... }:
{ extern, overrides }:
(inputs.utils.lib.eachDefaultSystem
(system:
let
overridePkgs = dev.os.pkgImport inputs.override [ ] system;
overridesOverlay = overrides.packages;
overlays = [
(final: prev: {
lib = prev.lib.extend (lfinal: lprev: {
inherit dev;
inherit (lib) nixosSystem;
utils = inputs.utils.lib;
});
})
(overridesOverlay overridePkgs)
self.overlay
]
++ extern.overlays
++ (lib.attrValues self.overlays);
in
2021-04-02 02:10:24 +00:00
{ pkgs = dev.os.pkgImport nixpkgs overlays system; }
)
).pkgs