10 stdenv.mkDerivation rec {
15 url = "https://noping.cc/files/${pname}-${version}.tar.bz2";
16 sha256 = "1n2wkmvw6n80ybdwkjq8ka43z2x8mvxq49byv61b52iyz69slf7b";
20 # Add support for ncurses-6.3. A backport of patch pending upstream
21 # inclusion: https://github.com/octo/liboping/pull/61
24 # Pull pending fix for format arguments mismatch:
25 # https://github.com/octo/liboping/pull/60
27 name = "format-args.patch";
28 url = "https://github.com/octo/liboping/commit/7a50e33f2a686564aa43e4920141e6f64e042df1.patch";
29 sha256 = "118fl3k84m3iqwfp49g5qil4lw1gcznzmyxnfna0h7za2nm50cxw";
33 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isGNU "-Wno-error=format-truncation";
40 configureFlags = lib.optional (perl == null) "--with-perl-bindings=no";
43 description = "C library to generate ICMP echo requests (a.k.a. ping packets)";
45 liboping is a C library to generate ICMP echo requests, better known as
46 "ping packets". It is intended for use in network monitoring applications
47 or applications that would otherwise need to fork ping(1) frequently.
48 Included is a sample application, called oping, which demonstrates the
51 homepage = "http://noping.cc/";
52 license = licenses.lgpl21;
53 platforms = platforms.unix;
54 maintainers = [ maintainers.bjornfor ];