From 9001480e03ab8c957716e2bf164bbde605472399 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 1 Oct 2023 21:19:33 +0200 Subject: Add a flag for building with nix-output-monitor all this does is to replace the build invocations of nix/nix-build with nom/nom-build (of https://github.com/maralorn/nix-output-monitor) which gives more structured output of the running build. --- src/cli.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 47dc936..2d3d044 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -106,6 +106,9 @@ pub struct Opts { /// Prompt for sudo password during activation. #[clap(long)] interactive_sudo: Option, + /// Call nom (nix-output-monitor) when building the configuration. + #[clap(long)] + nom: bool, } /// Returns if the available Nix installation supports flakes @@ -424,6 +427,7 @@ async fn run_deploy( boot: bool, log_dir: &Option, rollback_succeeded: bool, + use_nom: bool, ) -> Result<(), RunDeployError> { let to_deploy: ToDeploy = deploy_flakes .iter() @@ -581,6 +585,7 @@ async fn run_deploy( keep_result, result_path, extra_build_args, + use_nom, }, ) }; @@ -717,6 +722,7 @@ pub async fn run(args: Option<&ArgMatches>) -> Result<(), RunError> { opts.boot, &opts.log_dir, opts.rollback_succeeded.unwrap_or(true), + opts.nom, ) .await?; -- cgit v1.2.3