ark/lib/devos/mkPkgs.nix

28 lines
676 B
Nix
Raw Normal View History

2021-04-19 02:30:07 +03:00
{ lib, dev, nixpkgs, userSelf, 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)
2021-04-19 02:30:07 +03:00
userSelf.overlay
]
++ extern.overlays
2021-04-19 02:30:07 +03:00
++ (lib.attrValues userSelf.overlays);
in
2021-04-02 05:10:24 +03:00
{ pkgs = dev.os.pkgImport nixpkgs overlays system; }
)
).pkgs