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