Skip to content

Commit

Permalink
nix flake lock after writing the new flake.nix contents
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-h committed Oct 6, 2023
1 parent 774e180 commit 00ee103
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/cli/cmd/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ impl CommandExecute for ConvertSubcommand {
println!("{new_flake_contents}");
} else {
tokio::fs::write(self.flake_path, new_flake_contents).await?;
// TODO: nix flake lock?
tokio::process::Command::new("nix")
.args(&["--extra-experimental-features", "nix-command flakes"])
.arg("flake")
.arg("lock")
.status()
.await?;
}

Ok(ExitCode::SUCCESS)
Expand Down

0 comments on commit 00ee103

Please sign in to comment.