Skip to main content

nix_input_name

Function nix_input_name 

Source
pub fn nix_input_name(name: &str) -> String
Expand description

A flake input name for a package name: a Nix identifier, derived deterministically.

Every character outside [A-Za-z0-9_-] becomes -, runs collapse, a name that cannot start an identifier takes the dep- prefix, and a keyword takes the -input suffix.