2018-08-18 19:06:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch
|
2019-03-24 19:00:28 +00:00
|
|
|
, meson, ninja, pkgconfig, gettext, libxslt, docbook_xsl_ns
|
2019-07-10 00:45:21 +01:00
|
|
|
, libcap, nettle, libidn2, systemd
|
2018-08-18 19:06:49 +01:00
|
|
|
}:
|
2004-08-05 20:30:00 +01:00
|
|
|
|
2018-09-02 11:40:46 +01:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2013-03-18 11:21:00 +00:00
|
|
|
let
|
2019-07-10 00:45:21 +01:00
|
|
|
version = "20190709";
|
2018-09-02 11:40:46 +01:00
|
|
|
sunAsIsLicense = {
|
|
|
|
fullName = "AS-IS, SUN MICROSYSTEMS license";
|
2019-07-10 00:45:21 +01:00
|
|
|
url = "https://github.com/iputils/iputils/blob/s${version}/rdisc.c";
|
2018-09-02 11:40:46 +01:00
|
|
|
};
|
2019-07-10 00:45:21 +01:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "iputils";
|
|
|
|
inherit version;
|
2013-06-04 13:18:55 +01:00
|
|
|
|
2018-08-18 19:06:49 +01:00
|
|
|
src = fetchFromGitHub {
|
2019-07-10 00:45:21 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "s${version}";
|
|
|
|
sha256 = "04bp4af15adp79ipxmiakfp0ij6hx5qam266flzbr94pr8z8l693";
|
2004-08-05 20:30:00 +01:00
|
|
|
};
|
|
|
|
|
2019-03-24 19:00:28 +00:00
|
|
|
mesonFlags =
|
|
|
|
[ "-DUSE_CRYPTO=nettle"
|
|
|
|
"-DBUILD_RARPD=true"
|
|
|
|
"-DBUILD_TRACEROUTE6=true"
|
2019-05-15 22:33:04 +01:00
|
|
|
"-DNO_SETCAP_OR_SUID=true"
|
2019-03-24 19:00:28 +00:00
|
|
|
"-Dsystemdunitdir=etc/systemd/system"
|
|
|
|
]
|
|
|
|
# Disable idn usage w/musl (https://github.com/iputils/iputils/pull/111):
|
|
|
|
++ optional stdenv.hostPlatform.isMusl "-DUSE_IDN=false";
|
|
|
|
|
2019-05-15 22:33:04 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext libxslt.bin docbook_xsl_ns ];
|
2019-03-24 19:00:28 +00:00
|
|
|
buildInputs = [ libcap nettle systemd ]
|
2019-07-10 00:45:21 +01:00
|
|
|
++ optional (!stdenv.hostPlatform.isMusl) libidn2;
|
2013-03-18 14:07:03 +00:00
|
|
|
|
2018-09-02 11:40:46 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01: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";
|
2018-09-02 11:40:46 +01:00
|
|
|
license = with licenses; [ gpl2Plus bsd3 sunAsIsLicense ];
|
2018-04-15 09:27:09 +01:00
|
|
|
platforms = platforms.linux;
|
2018-08-18 19:06:49 +01:00
|
|
|
maintainers = with maintainers; [ primeos lheckemann ];
|
2019-07-15 07:30:16 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
A set of small useful utilities for Linux networking including:
|
|
|
|
|
|
|
|
arping
|
|
|
|
clockdiff
|
|
|
|
ninfod
|
|
|
|
ping
|
|
|
|
rarpd
|
|
|
|
rdisc
|
|
|
|
tftpd
|
|
|
|
tracepath
|
|
|
|
traceroute6
|
|
|
|
'';
|
2011-02-02 16:05:18 +00:00
|
|
|
};
|
2004-08-05 20:30:00 +01:00
|
|
|
}
|