2023-01-08 16:58:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
}:
|
2014-09-29 19:00:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "traceroute";
|
2023-08-31 08:37:47 +00:00
|
|
|
version = "2.1.3";
|
2014-09-29 19:00:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "mirror://sourceforge/traceroute/${pname}-${version}.tar.gz";
|
2023-08-31 08:37:47 +00:00
|
|
|
sha256 = "sha256-BevHq6KKkQD5u65Uzuy/dcgsz0a9/Oi11kgGRZp+BBI=";
|
2014-09-29 19:00:35 +00:00
|
|
|
};
|
|
|
|
|
2023-01-08 16:58:53 +00:00
|
|
|
makeFlags = [
|
|
|
|
"prefix=$(out)"
|
|
|
|
"LDFLAGS=-lm"
|
|
|
|
"env=yes"
|
|
|
|
];
|
2014-09-29 19:00:35 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's@LIBS := \(.*\) -lm \(.*\)@LIBS := \1 \2@' Make.rules
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-09-29 19:00:35 +00:00
|
|
|
description = "Tracks the route taken by packets over an IP network";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://traceroute.sourceforge.net/";
|
2023-01-08 16:58:53 +00:00
|
|
|
changelog = "https://sourceforge.net/projects/traceroute/files/traceroute/traceroute-${version}/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ koral ];
|
2014-10-06 22:04:51 +00:00
|
|
|
platforms = platforms.linux;
|
2014-09-29 19:00:35 +00:00
|
|
|
};
|
|
|
|
}
|