fn gen_narinfo_str(path_info: &PathInfo) -> String
Constructs a String in NARInfo format for the given PathInfo.