2017-02-15 10:04:35 +00:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, libsysfs, gnutls, openssl
|
2017-08-11 09:40:08 +00:00
|
|
|
, libcap, opensp, docbook_sgml_dtd_31
|
2017-02-15 10:04:35 +00:00
|
|
|
, libidn, nettle
|
2016-05-13 01:53:37 +00:00
|
|
|
, SGMLSpm, libgcrypt }:
|
2004-08-05 19:30:00 +00:00
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
assert stdenv ? glibc;
|
2007-05-16 14:54:28 +00:00
|
|
|
|
2013-03-18 11:21:00 +00:00
|
|
|
let
|
2017-02-15 10:04:35 +00:00
|
|
|
time = "20161105";
|
2013-03-18 11:21:00 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iputils-${time}";
|
2013-06-04 12:18:55 +00:00
|
|
|
|
2004-08-05 19:30:00 +00:00
|
|
|
src = fetchurl {
|
2017-02-15 10:04:35 +00:00
|
|
|
url = "https://github.com/iputils/iputils/archive/s${time}.tar.gz";
|
|
|
|
sha256 = "12mdmh4qbf5610csaw3rkzhpzf6djndi4jsl4gyr8wni0cphj4zq";
|
2004-08-05 19:30:00 +00:00
|
|
|
};
|
|
|
|
|
2013-03-18 14:07:03 +00:00
|
|
|
prePatch = ''
|
2017-08-11 09:40:08 +00:00
|
|
|
sed -e s/sgmlspl/sgmlspl.pl/ \
|
|
|
|
-e s/nsgmls/onsgmls/ \
|
|
|
|
-i doc/Makefile
|
2013-03-18 14:07:03 +00:00
|
|
|
'';
|
2011-02-02 16:05:18 +00:00
|
|
|
|
2013-06-04 12:18:55 +00:00
|
|
|
makeFlags = "USE_GNUTLS=no";
|
|
|
|
|
2016-05-13 01:53:37 +00:00
|
|
|
buildInputs = [
|
2017-08-11 09:40:08 +00:00
|
|
|
libsysfs opensp openssl libcap docbook_sgml_dtd_31 SGMLSpm libgcrypt libidn nettle
|
2016-05-13 01:53:37 +00:00
|
|
|
];
|
2013-03-18 14:07:03 +00:00
|
|
|
|
|
|
|
buildFlags = "man all ninfod";
|
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
installPhase =
|
|
|
|
''
|
2017-02-15 10:04:35 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -p ping tracepath clockdiff arping rdisc ninfod/ninfod $out/bin/
|
2013-03-18 14:07:03 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/man/man8
|
2017-02-15 10:04:35 +00:00
|
|
|
cp -p \
|
|
|
|
doc/clockdiff.8 doc/arping.8 doc/ping.8 doc/rdisc.8 doc/tracepath.8 doc/ninfod.8 \
|
2016-10-28 18:05:35 +00:00
|
|
|
$out/share/man/man8
|
2011-02-02 16:05:18 +00:00
|
|
|
'';
|
2013-06-04 12:18:55 +00:00
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
meta = {
|
2017-02-15 10:04:35 +00:00
|
|
|
homepage = https://github.com/iputils/iputils;
|
2011-02-02 16:05:18 +00:00
|
|
|
description = "A set of small useful utilities for Linux networking";
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2004-08-05 19:30:00 +00:00
|
|
|
}
|