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