1 { stdenv, fetchurl, ncurses ? null, perl ? null, lib }:
3 stdenv.mkDerivation rec {
4 name = "liboping-1.10.0";
7 url = "http://verplant.org/liboping/files/${name}.tar.bz2";
8 sha256 = "1n2wkmvw6n80ybdwkjq8ka43z2x8mvxq49byv61b52iyz69slf7b";
11 NIX_CFLAGS_COMPILE = lib.optionalString
12 stdenv.cc.isGNU "-Wno-error=format-truncation";
14 buildInputs = [ ncurses perl ];
16 configureFlags = lib.optional (perl == null) "--with-perl-bindings=no";
19 description = "C library to generate ICMP echo requests (a.k.a. ping packets)";
21 liboping is a C library to generate ICMP echo requests, better known as
22 "ping packets". It is intended for use in network monitoring applications
23 or applications that would otherwise need to fork ping(1) frequently.
24 Included is a sample application, called oping, which demonstrates the
27 homepage = "http://noping.cc/";
28 license = licenses.lgpl21;
29 platforms = platforms.unix;
30 maintainers = [ maintainers.bjornfor ];