lib2: enable packageOverrides

This commit is contained in:
DavHau 2022-03-05 14:29:40 +07:00
parent 6d4b62be79
commit f8f37dd50e
2 changed files with 4 additions and 3 deletions

View File

@ -622,6 +622,7 @@ let
pname ? null,
source ? null,
packageOverrides ? {},
settings ? [],
}:
let
@ -644,7 +645,7 @@ let
projectOutputs =
l.map
(dreamLock: makeOutputsForDreamLock rec {
inherit dreamLock;
inherit dreamLock packageOverrides;
sourceOverrides = oldSources:
(defaultSourceOverride dreamLock);
})

View File

@ -108,6 +108,7 @@ let
{
pname ? throw "Please pass `pname` to makeFlakeOutputs",
pkgs ? null,
packageOverrides ? {},
settings ? [],
source,
systems ? [],
@ -118,7 +119,6 @@ let
let
config = args.config or ((import ./utils/config.nix).loadConfig {});
argsForward = b.removeAttrs args [ "config" "pname" "pkgs" "systems" ];
allPkgs = makeNixpkgs pkgs systems;
forAllSystems = f: b.mapAttrs f allPkgs;
dream2nixFor = forAllSystems (dream2nixForSystem config);
@ -138,7 +138,7 @@ let
};
in
dream2nix.realizeProjects {
inherit dreamLocks source;
inherit dreamLocks packageOverrides source;
})
allPkgs;