> /etc/protocols is required to map names to ports and protocols by the > GNU C library. This is a serious bug in how nixos installs the GNU C > library, since the GNU C library depends on this file for > getprotobyname to work; the same goes for /etc/services. This is not > something we can fix directly on our side, other than maybe handling > it more gracefully since we simply use getprotbyname and its friends.
Just to clarify here, it is actually not a NixOS issue. NixOS does provide /etc/protocols and /etc/services. However in our Hydra buildfarm we usually build in a chroot environment where these files are not available. In general that is a good idea as it makes sure there are no hidden dependencies. Then the Hydra buildfarm is broken, these files are required for a working system and not including them is a _serious_ problem in how you create your build infrastructure.