pub(crate) fn with_nix_path_allocating<T, F>(from: &[u8], f: F) -> Result<T>where
    F: FnOnce(&CStr) -> T,