Function nix_compat::store_path::utils::build_text_path
source · pub fn build_text_path<'a, S, SP, I, C>(
name: &'a str,
content: C,
references: I
) -> Result<StorePath<SP>, BuildStorePathError>
Expand description
This builds a store path, by calculating the text_hash_string of either a derivation or a literal text file that may contain references. If you don’t want to have to pass the entire contents, you might want to use build_ca_path instead.