2021-09-19 18:10:07 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpcap
|
|
|
|
, libnet
|
2017-05-20 16:18:26 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-09-19 18:10:07 +01:00
|
|
|
pname = "tcptraceroute";
|
|
|
|
version = "1.5beta7";
|
2017-05-20 16:18:26 +01:00
|
|
|
|
2021-09-19 18:10:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mct";
|
|
|
|
repo = "tcptraceroute";
|
|
|
|
rev = "${pname}-${version}";
|
|
|
|
hash = "sha256-KU4MLWtOFzzNr+I99fRbhBokhS1JUNL+OgVltkOGav4=";
|
|
|
|
};
|
2017-05-20 16:18:26 +01:00
|
|
|
|
|
|
|
|
2021-09-19 18:10:07 +01:00
|
|
|
# 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")
|
|
|
|
'';
|
2017-05-20 16:18:26 +01:00
|
|
|
|
2021-09-19 18:10:07 +01:00
|
|
|
buildInputs = [ libpcap libnet ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A traceroute implementation using TCP packets";
|
|
|
|
homepage = "https://github.com/mct/tcptraceroute";
|
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [ ];
|
|
|
|
};
|
2017-05-20 16:18:26 +01:00
|
|
|
}
|