1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
use clap::Parser;
#[derive(Clone, Debug, Parser)]
#[command(version, about, long_about = None)]
pub struct Cli {
/// A list of Nix installables to look for. If not given, all paths in nixpkgs are checked
pub installables: Option<Vec<String>>,
/// Flake reference pointing to a NixOS or nix-darwin configuration
#[allow(clippy::doc_markdown)] // Why does "NixOS" trigger this???
#[arg(short, long, conflicts_with("installables"))]
pub configuration: Option<String>,
/// Flake reference pointing to a standalone home-manager configuration
#[arg(
short = 'o',
long,
conflicts_with("configuration"),
conflicts_with("installables")
)]
pub home: Option<String>,
/// URLs of the substituters to check (can be passed more than once)
#[arg(
alias = "binary-cache",
short,
long,
default_value = "https://cache.nixos.org"
)]
pub binary_caches: Vec<String>,
/// Flake reference of nixpkgs (or other package repository)
#[arg(short, long, default_value = "nixpkgs")]
pub flake: String,
/// Show a list of store paths not found in the substituter
#[arg(short, long)]
pub show_missing: bool,
}
|