NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.16k stars 1.47k forks source link

nixos/nix image doesn't have `pkgs.iana-etc` contents (`/etc/protocols` and `/etc/services`) #7344

Open arianvp opened 1 year ago

arianvp commented 1 year ago

Describe the bug

/etc/services and /etc/protocols are missing; which means certain binaries we're running in CI aren't working anymore after we moved from nixos/nix:2.3.11 to nixos/nix:latest

Steps To Reproduce

run docker image and run a service that depends on glibc and does a name lookup. It fails.

Expected behavior

/etc/protocol and /etc/services is populated so that glibc can do proper name lookups

nix-env --version output

Additional context

This worked in the alpine based build. Sounds like a regression when we moved to a nix-based build.

M1Sports20 commented 11 months ago

I am also seeing this problem and don't know a work around. I tried adding the nixpkgs.iana-etc and it doesn't seem to do anything, include adding the files.