2016-06-03 03:19:19 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
2019-04-23 05:04:38 +02:00
|
|
|
, openssl, lib
|
2016-06-03 03:19:19 +02:00
|
|
|
, libcap, libpcap, libnfnetlink, libnetfilter_conntrack, libnetfilter_queue
|
2013-09-09 12:56:22 +02:00
|
|
|
}:
|
|
|
|
|
2016-06-03 03:19:19 +02:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2013-09-09 12:56:22 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2016-06-03 03:19:19 +02:00
|
|
|
name = "tcpcrypt-${version}";
|
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
|
|
|
};
|
|
|
|
|
2016-06-03 03:19:19 +02: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 = {
|
2016-06-03 03:19:19 +02:00
|
|
|
homepage = http://tcpcrypt.org/;
|
|
|
|
description = "Fast TCP encryption";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
2013-09-09 12:56:22 +02:00
|
|
|
};
|
|
|
|
}
|