2016-06-03 02:19:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook
|
|
|
|
, openssl
|
|
|
|
, 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 {
|
2016-06-03 02:19:19 +01:00
|
|
|
name = "tcpcrypt-${version}";
|
|
|
|
version = "0.4";
|
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}";
|
|
|
|
sha256 = "04n1qpf4x8x289xa7jndmx99xp0lbxjzjw013kf64i1n70i9wbnp";
|
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-06-03 02:19:19 +01:00
|
|
|
outputs = [ "dev" "out" "bin" ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ openssl ]
|
|
|
|
++ optionals stdenv.isLinux [ libcap libpcap 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 = {
|
2016-06-03 02:19:19 +01:00
|
|
|
homepage = http://tcpcrypt.org/;
|
|
|
|
description = "Fast TCP encryption";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd2;
|
2013-09-09 11:56:22 +01:00
|
|
|
};
|
|
|
|
}
|