Function validate_output_name

Source
pub fn validate_output_name(output_name: &str) -> Result<(), DerivationError>
Expand description

Validates an output name using derivation output name rules.

Output names must:

  • Not be empty
  • Not be “drv” (reserved name that would conflict with the existing drvPath key in builtins.derivation)
  • Pass the store_path::validate_name check

This function is used by both derivation validation and builtins.placeholder.