at 25.11-pre 39 lines 836 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "net-tools"; 9 version = "2.10"; 10 11 src = fetchurl { 12 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.xz"; 13 sha256 = "sha256-smJDWlJB6Jv6UcPKvVEzdTlS96e3uT8y4Iy52W9YDWk="; 14 }; 15 16 preBuild = '' 17 cp ${./config.h} config.h 18 ''; 19 20 makeFlags = [ 21 "CC=${stdenv.cc.targetPrefix}cc" 22 "AR=${stdenv.cc.targetPrefix}ar" 23 "BASEDIR=$(out)" 24 "mandir=/share/man" 25 "HAVE_ARP_TOOLS=1" 26 "HAVE_PLIP_TOOLS=1" 27 "HAVE_SERIAL_TOOLS=1" 28 "HAVE_HOSTNAME_TOOLS=1" 29 "HAVE_HOSTNAME_SYMLINKS=1" 30 "HAVE_MII=1" 31 ]; 32 33 meta = { 34 homepage = "http://net-tools.sourceforge.net/"; 35 description = "Set of tools for controlling the network subsystem in Linux"; 36 license = lib.licenses.gpl2Plus; 37 platforms = lib.platforms.linux; 38 }; 39}