Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
68 lines
1.4 KiB
Nix
68 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
automake,
|
|
autoconf,
|
|
openssl,
|
|
zlib,
|
|
libpcap,
|
|
boost,
|
|
useCairo ? false,
|
|
cairo,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "tcpflow";
|
|
version = "1.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "simsong";
|
|
repo = "tcpflow";
|
|
tag = "tcpflow-${version}";
|
|
sha256 = "0vbm097jhi5n8pg08ia1yhzc225zv9948blb76f4br739l9l22vq";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
automake
|
|
autoconf
|
|
];
|
|
buildInputs = [
|
|
openssl
|
|
zlib
|
|
libpcap
|
|
boost
|
|
]
|
|
++ lib.optional useCairo cairo;
|
|
|
|
prePatch = ''
|
|
substituteInPlace bootstrap.sh \
|
|
--replace ".git" "" \
|
|
--replace "/bin/rm" "rm"
|
|
# Temporary fix for a build error:
|
|
# https://src.fedoraproject.org/rpms/tcpflow/blob/979e250032b90de2d6b9e5b94b5203d98cccedad/f/tcpflow-1.6.1-format.patch
|
|
substituteInPlace src/datalink.cpp \
|
|
--replace 'DEBUG(6)(s.c_str());' 'DEBUG(6) ("%s", s.c_str());'
|
|
'';
|
|
|
|
preConfigure = "bash ./bootstrap.sh";
|
|
|
|
meta = with lib; {
|
|
description = "TCP stream extractor";
|
|
longDescription = ''
|
|
tcpflow is a program that captures data transmitted as part of TCP
|
|
connections (flows), and stores the data in a way that is convenient for
|
|
protocol analysis and debugging.
|
|
'';
|
|
inherit (src.meta) homepage;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [
|
|
raskin
|
|
obadz
|
|
];
|
|
platforms = platforms.unix;
|
|
mainProgram = "tcpflow";
|
|
};
|
|
}
|