2021-01-15 09:19:50 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
autoreconfHook,
|
2019-06-16 19:59:06 +00:00
|
|
|
openssl,
|
2016-06-03 01:19:19 +00:00
|
|
|
libcap,
|
|
|
|
libpcap,
|
|
|
|
libnfnetlink,
|
|
|
|
libnetfilter_conntrack,
|
|
|
|
libnetfilter_queue,
|
2013-09-09 10:56:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "tcpcrypt";
|
2017-02-02 03:39:24 +00:00
|
|
|
version = "0.5";
|
2013-09-09 10:56:22 +00:00
|
|
|
|
2016-06-03 01:19:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "tcpcrypt";
|
|
|
|
owner = "scslab";
|
|
|
|
rev = "v${version}";
|
2017-02-02 03:39:24 +00:00
|
|
|
sha256 = "0a015rlyvagz714pgwr85f8gjq1fkc0il7d7l39qcgxrsp15b96w";
|
2013-09-09 10:56:22 +00:00
|
|
|
};
|
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
postUnpack = "mkdir -vp $sourceRoot/m4";
|
2013-09-09 10:56:22 +00:00
|
|
|
|
2016-08-29 00:30:01 +00:00
|
|
|
outputs = [
|
|
|
|
"bin"
|
|
|
|
"dev"
|
|
|
|
"out"
|
|
|
|
];
|
2016-06-03 01:19:19 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2019-04-23 03:04:38 +00:00
|
|
|
buildInputs =
|
|
|
|
[
|
|
|
|
openssl
|
|
|
|
libpcap
|
|
|
|
]
|
2023-01-24 16:35:54 +00:00
|
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
|
|
libcap
|
|
|
|
libnfnetlink
|
|
|
|
libnetfilter_conntrack
|
|
|
|
libnetfilter_queue
|
|
|
|
];
|
2013-09-11 15:24:22 +00:00
|
|
|
|
2016-06-03 01:19:19 +00:00
|
|
|
enableParallelBuilding = true;
|
2013-09-09 10:56:22 +00:00
|
|
|
|
2023-01-24 16:35:54 +00:00
|
|
|
meta = with lib; {
|
2022-05-28 13:22:26 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://tcpcrypt.org/";
|
2016-06-03 01:19:19 +00:00
|
|
|
description = "Fast TCP encryption";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
2013-09-09 10:56:22 +00:00
|
|
|
};
|
|
|
|
}
|