5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
35 lines
793 B
Nix
35 lines
793 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, libpcap
|
|
, libnet
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tcptraceroute";
|
|
version = "1.5beta7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mct";
|
|
repo = "tcptraceroute";
|
|
rev = "${pname}-${version}";
|
|
hash = "sha256-KU4MLWtOFzzNr+I99fRbhBokhS1JUNL+OgVltkOGav4=";
|
|
};
|
|
|
|
|
|
# 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 = {
|
|
description = "A traceroute implementation using TCP packets";
|
|
homepage = "https://github.com/mct/tcptraceroute";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ ];
|
|
mainProgram = "tcptraceroute";
|
|
};
|
|
}
|