···1516 buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
1718- configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include";
0000001920 # Test fails with "UNIX socket name too long", probably because our
21 # $TMPDIR is too long.
···25 postInstall = ''
26 # XXX: These programs are normally installed setuid but since it
27 # fails, they end up being non-executable, hence this hack.
28- chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh,traceroute}
29 '';
3031 meta = {
···1516 buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
1718+ configureFlags = [ "--with-ncurses-include-dir=${ncurses.dev}/include" ]
19+ ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [ # Musl doesn't define rcmd
20+ "--disable-rcp"
21+ "--disable-rsh"
22+ "--disable-rlogin"
23+ "--disable-rexec"
24+ ];
2526 # Test fails with "UNIX socket name too long", probably because our
27 # $TMPDIR is too long.
···31 postInstall = ''
32 # XXX: These programs are normally installed setuid but since it
33 # fails, they end up being non-executable, hence this hack.
34+ chmod +x $out/bin/{ping,ping6,${stdenv.lib.optionalString (!stdenv.hostPlatform.isMusl) ''rcp,rlogin,rsh,''}traceroute}
35 '';
3637 meta = {