depot/third_party/nixpkgs/pkgs/tools/networking/tcptraceroute/default.nix
Default email 84cb9d505d Project import generated by Copybara.
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
2021-09-23 17:35:13 +02:00

34 lines
754 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.gpl2;
maintainers = [ ];
};
}