at 17.09-beta 1.4 kB view raw
1{ stdenv, fetchurl, ncurses, perl, help2man }: 2 3stdenv.mkDerivation rec { 4 name = "inetutils-1.9.4"; 5 6 src = fetchurl { 7 url = "mirror://gnu/inetutils/${name}.tar.gz"; 8 sha256 = "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy"; 9 }; 10 11 patches = [ 12 ./whois-Update-Canadian-TLD-server.patch 13 ./service-name.patch 14 ]; 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. 22 #doCheck = true; 23 24 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 = { 32 description = "Collection of common network programs"; 33 34 longDescription = 35 '' The GNU network utilities suite provides the 36 following tools: ftp(d), hostname, ifconfig, inetd, logger, ping, rcp, 37 rexec(d), rlogin(d), rsh(d), syslogd, talk(d), telnet(d), tftp(d), 38 traceroute, uucpd, and whois. 39 ''; 40 41 homepage = http://www.gnu.org/software/inetutils/; 42 license = stdenv.lib.licenses.gpl3Plus; 43 44 maintainers = [ ]; 45 platforms = stdenv.lib.platforms.gnu; 46 }; 47}