mirror of
https://github.com/nix-community/dream2nix.git
synced 2025-01-05 13:29:29 +03:00
allow selecting builder via lib2
This commit is contained in:
parent
c121372991
commit
783a64d33a
@ -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);
|
||||
};
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user