allow selecting builder via lib2

This commit is contained in:
DavHau 2022-03-27 20:08:22 +07:00
parent c121372991
commit 783a64d33a
2 changed files with 4 additions and 1 deletions

View File

@ -408,6 +408,8 @@
builder' =
if builder == null
then findBuilder dreamLock
else if l.isString builder
then builders.${dreamLock._generic.subsystem}.${builder}
else builder;
fetcher' =
@ -604,6 +606,7 @@
outputsForProject = proj: let
outputs = makeOutputsForDreamLock rec {
inherit inject packageOverrides;
builder = proj.builder or null;
dreamLock = proj.dreamLock;
sourceOverrides = oldSources: (defaultSourceOverride proj.dreamLock);
};

View File

@ -92,6 +92,7 @@
};
makeFlakeOutputsFunc = {
config ? {},
inject ? {},
pname ? throw "Please pass `pname` to makeFlakeOutputs",
pkgs ? null,
@ -101,7 +102,6 @@
systems ? [],
translator ? null,
translatorArgs ? {},
...
} @ args: let
config = args.config or ((import ./utils/config.nix).loadConfig {});
allPkgs = makeNixpkgs pkgs systems;