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