at v192 1.0 kB view raw
1{ stdenv, fetchurl, ncurses ? null, perl ? null }: 2 3stdenv.mkDerivation rec { 4 name = "liboping-1.8.0"; 5 6 src = fetchurl { 7 url = "http://verplant.org/liboping/files/${name}.tar.bz2"; 8 sha256 = "1nsvlsvapc64h0anip2hz5ydbgk3an94xqiaa9kivcw1r6193jqx"; 9 }; 10 11 buildInputs = [ ncurses perl ]; 12 13 configureFlags = stdenv.lib.optionalString (perl == null) "--with-perl-bindings=no"; 14 15 meta = with stdenv.lib; { 16 description = "C library to generate ICMP echo requests (a.k.a. ping packets)"; 17 longDescription = '' 18 liboping is a C library to generate ICMP echo requests, better known as 19 "ping packets". It is intended for use in network monitoring applications 20 or applications that would otherwise need to fork ping(1) frequently. 21 Included is a sample application, called oping, which demonstrates the 22 library's abilities. 23 ''; 24 homepage = http://noping.cc/; 25 license = licenses.lgpl21; 26 platforms = platforms.linux; 27 maintainers = [ maintainers.bjornfor ]; 28 }; 29}