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