mirror of
https://github.com/divnix/digga.git
synced 2024-11-23 20:22:04 +03:00
Merge #217
217: lib/mkPkgs: don't import external files and get inputs as argument r=nrdxp a=Pacman99 Changes mkPkgs to take extern, overrides, and pkgs as an argument. This improves their ability to be used as lib functions. Co-authored-by: Pacman99 <pachum99@gmail.com>
This commit is contained in:
commit
ef1ee6e6b8
@ -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 =
|
||||
@ -90,7 +93,7 @@
|
||||
packages = lib.filterPackages system legacyPackages;
|
||||
|
||||
devShell = import ./shell {
|
||||
inherit self system;
|
||||
inherit self system extern overrides;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
@ -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 = [
|
||||
(final: prev: {
|
||||
|
@ -1,8 +1,12 @@
|
||||
{ self ? (import ../compat).defaultNix
|
||||
, system ? builtins.currentSystem
|
||||
, extern ? import ../extern { inherit (self) inputs; }
|
||||
, overrides ? import ../overrides
|
||||
}:
|
||||
let
|
||||
pkgs = (self.lib.os.mkPkgs).${system};
|
||||
pkgs = (self.lib.os.mkPkgs {
|
||||
inherit overrides extern;
|
||||
}).${system};
|
||||
|
||||
inherit (pkgs) lib;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user