Skip to main content

Crate nixdrv

Crate nixdrv 

Source
Expand description

nixdrv — derivation ATerm/JSON parse, project, CA store-path helpers.

Re-exports§

pub use ca::FileIngestionMethod;
pub use ca::fixed_output_path;
pub use ca::make_store_path;
pub use ca::text_path;
pub use caps::DrvSource;
pub use caps::DrvSourceKey;
pub use caps::FsDrvSource;
pub use caps::MockDrvSource;
pub use caps::NixdrvEnv;
pub use caps::live_providers;
pub use commands::cmd_parse;
pub use commands::cmd_project;
pub use commands::cmd_store_path_make_fixed;
pub use commands::cmd_store_path_parse;
pub use commands::derivation_to_json;
pub use error::InfraError;
pub use error::ParseError;
pub use hash::NIX_BASE32_ALPHABET;
pub use hash::compress_hash;
pub use hash::nix_base32_decode;
pub use hash::nix_base32_encode;
pub use model::Derivation;
pub use model::DerivationOutput;
pub use parse_aterm::parse_drv_aterm;
pub use project::project;
pub use store_path::DEFAULT_STORE_DIR;
pub use store_path::StorePath;
pub use store_path::parse_store_path;

Modules§

ca
Content-addressed store path computation (no FS NAR walker).
caps
Capability keys and providers for nixdrv DI 3.0.
commands
Effect programs for nixdrv CLI commands.
error
Error types for nixdrv.
hash
Nix base32 encoding and hash compression.
model
Derivation model — shared between ATerm and JSON parsers.
parse_aterm
Classic Nix derivation ATerm parser.
parse_json
JSON derivation parsing (nix derivation show, bare, eval-like).
project
Selective derivation field projection to JSON.
store_path
Nix store path parsing and display.

Enums§

Exit
Final outcome of an effect: either a success value or a structured failure Cause.