2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv , fetchurl, libpcap, libnet
|
2017-05-20 16:18:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pkgname = "tcptraceroute";
|
|
|
|
name = "${pkgname}-${version}";
|
|
|
|
version = "1.5beta7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mct/${pkgname}/archive/${name}.tar.gz";
|
|
|
|
sha256 = "1rz8bgc6r1isb40awv1siirpr2i1paa2jc1cd3l5pg1m9522xzap";
|
|
|
|
};
|
|
|
|
|
|
|
|
# for reasons unknown --disable-static configure flag doesn't disable static
|
|
|
|
# linking.. we instead override CFLAGS with -static omitted
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=(CFLAGS=" -g -O2 -Wall")
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ libpcap libnet ];
|
|
|
|
|
|
|
|
meta = {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "A traceroute implementation using TCP packets";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/mct/tcptraceroute";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl2;
|
2020-02-09 09:50:35 +00:00
|
|
|
maintainers = [ ];
|
2017-05-20 16:18:26 +01:00
|
|
|
};
|
|
|
|
}
|