inetutils: fix build w/musl

+8 -2
+8 -2
pkgs/tools/networking/inetutils/default.nix
··· 15 15 16 16 buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ]; 17 17 18 - configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include"; 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 + ]; 19 25 20 26 # Test fails with "UNIX socket name too long", probably because our 21 27 # $TMPDIR is too long. ··· 25 31 postInstall = '' 26 32 # XXX: These programs are normally installed setuid but since it 27 33 # fails, they end up being non-executable, hence this hack. 28 - chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh,traceroute} 34 + chmod +x $out/bin/{ping,ping6,${stdenv.lib.optionalString (!stdenv.hostPlatform.isMusl) ''rcp,rlogin,rsh,''}traceroute} 29 35 ''; 30 36 31 37 meta = {