Parse to a meaningful format in the nix output stream before hitting the running build.

This commit is contained in:
Tom Alexander
2026-02-19 18:39:01 -05:00
parent f797a19175
commit 8d2dd015c4
8 changed files with 1028 additions and 309 deletions

View File

@@ -33,7 +33,7 @@ where
reference
};
let mut command = Command::new("nixos-rebuild");
let mut command = Command::new("nix");
command.current_dir(build_path);
command.stdout(Stdio::piped());
command.stderr(Stdio::piped());
@@ -41,7 +41,6 @@ where
command.args([
"build",
"--show-trace",
"--sudo",
"--max-jobs",
"1",
"--log-format",
@@ -49,7 +48,6 @@ where
"-vvvvvvvvvvv",
"--keep-going",
]);
command.arg("--flake");
command.arg(reference);
command.kill_on_drop(true);