···5050 linux = pkgs.utillinux;
5151 };
5252 getconf = {
5353- linux = if hostPlatform.isMusl then pkgs.musl-getconf
5454- else lib.getBin stdenv.cc.libc;
5353+ linux = if hostPlatform.libc == "glibc" then lib.getBin pkgs.glibc
5454+ else pkgs.netbsd.getconf;
5555 darwin = pkgs.darwin.system_cmds;
5656 };
5757 getent = {
5858- linux = if hostPlatform.isMusl then pkgs.musl-getent
5959- # This may not be right on other platforms, but preserves existing behavior
6060- else /* if hostPlatform.libc == "glibc" then */ pkgs.glibc.bin;
5858+ linux = if hostPlatform.libc == "glibc" then lib.getBin pkgs.glibc
5959+ else pkgs.netbsd.getent;
6060+ darwin = pkgs.netbsd.getent;
6161 };
6262 getopt = {
6363 linux = pkgs.utillinux;