2014-09-29 20:00:35 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "traceroute";
|
2016-07-09 13:40:14 +01:00
|
|
|
version = "2.1.0";
|
2014-09-29 20:00:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/traceroute/${pname}-${version}.tar.gz";
|
2016-07-09 13:40:14 +01:00
|
|
|
sha256 = "3669d22a34d3f38ed50caba18cd525ba55c5c00d5465f2d20d7472e5d81603b6";
|
2014-09-29 20:00:35 +01:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "prefix=$(out)" "LDFLAGS=-lm" ];
|
2014-09-29 20:00:35 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
sed -i 's@LIBS := \(.*\) -lm \(.*\)@LIBS := \1 \2@' Make.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://traceroute.sourceforge.net/";
|
2014-09-29 20:00:35 +01:00
|
|
|
description = "Tracks the route taken by packets over an IP network";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.koral ];
|
2014-10-06 23:04:51 +01:00
|
|
|
platforms = platforms.linux;
|
2014-09-29 20:00:35 +01:00
|
|
|
};
|
|
|
|
}
|