collectd: fix build and modernize derivation slightly
1. I experienced intermittent connection failures to <https://collectd.org> and I suspect it's hosted on hobbyist equipment.
This made the `src` derivation flaky, so I switched to the upstream GitHub repository.
It seems better to use the actual source instead of a prepared tarball from the release process anyway.
2. When building out of the source instead of the release tarball, we need to run Bison and Flex to generate the parser and lexer, and we need Perl for `pod2man`.
3. As the [build error on Hydra](https://hydra.nixos.org/build/300269816) notes, `src/virt.c` makes use of some token `ATTRIBUTE_UNUSED` but it's not defined anywhere. Define it.
4. Switch all hashes to use the SRI style.
5. Switch to `finalAttrs` fixpoint style for better overriding.
6. Reduce the scope of `with lib;` in the `meta` section.
Bit of a smörgåsbord but not too bad.
authored by
philiptaron.tngl.sh
and committed by
Bjørn Forsman
97734f4a
18975e6d