fn write_input_sources( writer: &mut impl Write, input_sources: &BTreeSet<StorePath>, ) -> Result<(), Error>