depot/third_party/nixpkgs/pkgs/tools/networking/tcptraceroute/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

35 lines
791 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 = "Traceroute implementation using TCP packets";
homepage = "https://github.com/mct/tcptraceroute";
license = lib.licenses.gpl2Only;
maintainers = [ ];
mainProgram = "tcptraceroute";
};
}