nix_info: Display pinned nix-eval-jobs path
This commit is contained in:
parent
faf84d5718
commit
87189ec3df
1 changed files with 7 additions and 0 deletions
|
@ -2,6 +2,7 @@ use clap::{App, ArgMatches};
|
||||||
|
|
||||||
use crate::error::ColmenaError;
|
use crate::error::ColmenaError;
|
||||||
use crate::nix::NixCheck;
|
use crate::nix::NixCheck;
|
||||||
|
use crate::nix::evaluator::nix_eval_jobs::get_pinned_nix_eval_jobs;
|
||||||
|
|
||||||
pub fn subcommand() -> App<'static> {
|
pub fn subcommand() -> App<'static> {
|
||||||
App::new("nix-info")
|
App::new("nix-info")
|
||||||
|
@ -13,5 +14,11 @@ pub async fn run(_global_args: &ArgMatches, _local_args: &ArgMatches) -> Result<
|
||||||
check.print_version_info();
|
check.print_version_info();
|
||||||
check.print_flakes_info(false);
|
check.print_flakes_info(false);
|
||||||
|
|
||||||
|
if let Some(pinned) = get_pinned_nix_eval_jobs() {
|
||||||
|
log::info!("Using pinned nix-eval-jobs: {}", pinned);
|
||||||
|
} else {
|
||||||
|
log::info!("Using nix-eval-jobs from PATH");
|
||||||
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue