2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, openssl
|
|
|
|
, libcap, libpcap, libnfnetlink, libnetfilter_conntrack, libnetfilter_queue
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tcpcrypt";
|
|
|
|
version = "0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "tcpcrypt";
|
|
|
|
owner = "scslab";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0a015rlyvagz714pgwr85f8gjq1fkc0il7d7l39qcgxrsp15b96w";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
postUnpack = "mkdir -vp $sourceRoot/m4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ openssl libpcap ]
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optionals stdenv.isLinux [ libcap libnfnetlink libnetfilter_conntrack libnetfilter_queue ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://tcpcrypt.org/";
|
|
|
|
description = "Fast TCP encryption";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|