Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 32 lines 1.1 kB view raw
1{ stdenv, fetchurl, ncurses ? null, perl ? null, lib }: 2 3stdenv.mkDerivation rec { 4 name = "liboping-1.10.0"; 5 6 src = fetchurl { 7 url = "http://verplant.org/liboping/files/${name}.tar.bz2"; 8 sha256 = "1n2wkmvw6n80ybdwkjq8ka43z2x8mvxq49byv61b52iyz69slf7b"; 9 }; 10 11 NIX_CFLAGS_COMPILE = lib.optionalString 12 stdenv.cc.isGNU "-Wno-error=format-truncation"; 13 14 buildInputs = [ ncurses perl ]; 15 16 configureFlags = lib.optional (perl == null) "--with-perl-bindings=no"; 17 18 meta = with lib; { 19 description = "C library to generate ICMP echo requests (a.k.a. ping packets)"; 20 longDescription = '' 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 25 library's abilities. 26 ''; 27 homepage = "http://noping.cc/"; 28 license = licenses.lgpl21; 29 platforms = platforms.unix; 30 maintainers = [ maintainers.bjornfor ]; 31 }; 32}