2021-01-11 07:54:33 +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";
|
2016-07-09 12:40:14 +00:00
|
|
|
version = "2.1.0";
|
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";
|
2016-07-09 12:40:14 +00:00
|
|
|
sha256 = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6";
|
2014-09-29 19:00:35 +00:00
|
|
|
};
|
|
|
|
|
2022-02-02 02:55:48 +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; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://traceroute.sourceforge.net/";
|
2014-09-29 19:00:35 +00:00
|
|
|
description = "Tracks the route taken by packets over an IP network";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2014-09-29 19:00:35 +00:00
|
|
|
maintainers = [ maintainers.koral ];
|
2014-10-06 22:04:51 +00:00
|
|
|
platforms = platforms.linux;
|
2014-09-29 19:00:35 +00:00
|
|
|
};
|
|
|
|
}
|