Function nix_compat::store_path::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>
where S: AsRef<str>, SP: Eq + Deref<Target = str> + From<&'a str>, I: IntoIterator<Item = S>, C: AsRef<[u8]>,
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.