inetutils: fix build w/musl

+8 -2
+8 -2
pkgs/tools/networking/inetutils/default.nix
··· 15 16 buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ]; 17 18 - configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include"; 19 20 # 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 ''; 30 31 meta = {
··· 15 16 buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ]; 17 18 + 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 + ]; 25 26 # 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 ''; 36 37 meta = {