lib/mkPkgs: fix function arguments

take extern and overrides as arguments as to not import external files
get inputs as a function dependency from callLib
This commit is contained in:
Pacman99 2021-03-26 09:54:37 -07:00
parent 4f38a88191
commit 562f476fb5
2 changed files with 7 additions and 6 deletions

View File

@ -34,8 +34,11 @@
inherit (lib) os;
extern = import ./extern { inherit inputs; };
overrides = import ./overrides;
multiPkgs = os.mkPkgs;
multiPkgs = os.mkPkgs {
inherit extern overrides;
};
outputs = {
nixosConfigurations =

View File

@ -1,13 +1,11 @@
{ lib, dev, nixos, self, ... }:
{ lib, dev, nixos, self, inputs, ... }:
let inherit (self) inputs;
in
{ extern, overrides }:
(inputs.utils.lib.eachDefaultSystem
(system:
let
extern = import ../../extern { inherit inputs; };
overridePkgs = dev.os.pkgImport inputs.override [ ] system;
overridesOverlay = (import ../../overrides).packages;
overridesOverlay = overrides.packages;
overlays = [
(overridesOverlay overridePkgs)