Fix formatting

This commit is contained in:
Andrea Bedini 2023-07-14 14:50:35 +08:00 committed by mergify[bot]
parent 22a2008a68
commit f88571cfc9

View file

@ -54,12 +54,10 @@ struct MyArgs : MixEvalArgs, MixCommonArgs {
size_t maxMemorySize = 4096;
// usually in MixFlakeOptions
flake::LockFlags lockFlags = {
.updateLockFile = false,
flake::LockFlags lockFlags = {.updateLockFile = false,
.writeLockFile = false,
.useRegistries = false,
.allowUnlocked = false
};
.allowUnlocked = false};
MyArgs() : MixCommonArgs("nix-eval-jobs") {
addFlag({
@ -136,7 +134,8 @@ struct MyArgs : MixEvalArgs, MixCommonArgs {
// usually in MixFlakeOptions
addFlag({
.longName = "override-input",
.description = "Override a specific flake input (e.g. `dwarffs/nixpkgs`).",
.description =
"Override a specific flake input (e.g. `dwarffs/nixpkgs`).",
.category = category,
.labels = {"input-path", "flake-url"},
.handler = {[&](std::string inputPath, std::string flakeRef) {
@ -284,12 +283,11 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
nix::Value *vRoot = [&]() {
if (myArgs.flake) {
auto [flakeRef, fragment, outputSpec] =
parseFlakeRefWithFragmentAndExtendedOutputsSpec(myArgs.releaseExpr,
absPath("."));
parseFlakeRefWithFragmentAndExtendedOutputsSpec(
myArgs.releaseExpr, absPath("."));
InstallableFlake flake{
{}, state, std::move(flakeRef), fragment,
outputSpec, {}, {}, myArgs.lockFlags
};
{}, state, std::move(flakeRef), fragment, outputSpec,
{}, {}, myArgs.lockFlags};
return flake.toValue(*state).first;
} else {