From f88571cfc9132e8f2768aa41d57f5f471941d4b6 Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Fri, 14 Jul 2023 14:50:35 +0800 Subject: [PATCH] Fix formatting --- src/nix-eval-jobs.cc | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 8f8b00a..75cda14 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -54,12 +54,10 @@ struct MyArgs : MixEvalArgs, MixCommonArgs { size_t maxMemorySize = 4096; // usually in MixFlakeOptions - flake::LockFlags lockFlags = { - .updateLockFile = false, - .writeLockFile = false, - .useRegistries = false, - .allowUnlocked = false - }; + flake::LockFlags lockFlags = {.updateLockFile = false, + .writeLockFile = false, + .useRegistries = 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 state, Bindings &autoArgs, AutoCloseFD &to, nix::Value *vRoot = [&]() { if (myArgs.flake) { auto [flakeRef, fragment, outputSpec] = - parseFlakeRefWithFragmentAndExtendedOutputsSpec(myArgs.releaseExpr, - absPath(".")); - InstallableFlake flake { - {}, state, std::move(flakeRef), fragment, - outputSpec, {}, {}, myArgs.lockFlags - }; + parseFlakeRefWithFragmentAndExtendedOutputsSpec( + myArgs.releaseExpr, absPath(".")); + InstallableFlake flake{ + {}, state, std::move(flakeRef), fragment, outputSpec, + {}, {}, myArgs.lockFlags}; return flake.toValue(*state).first; } else {