nixpkgs-suyu/pkgs/tools/security/tcpcrypt/default.nix

35 lines
853 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, autoreconfHook
2019-04-23 05:04:38 +02:00
, openssl, lib
, libcap, libpcap, libnfnetlink, libnetfilter_conntrack, libnetfilter_queue
}:
with stdenv.lib;
stdenv.mkDerivation rec {
name = "tcpcrypt-${version}";
2017-02-02 04:39:24 +01:00
version = "0.5";
src = fetchFromGitHub {
repo = "tcpcrypt";
owner = "scslab";
rev = "v${version}";
2017-02-02 04:39:24 +01:00
sha256 = "0a015rlyvagz714pgwr85f8gjq1fkc0il7d7l39qcgxrsp15b96w";
};
postUnpack = ''mkdir -vp $sourceRoot/m4'';
outputs = [ "bin" "dev" "out" ];
nativeBuildInputs = [ autoreconfHook ];
2019-04-23 05:04:38 +02:00
buildInputs = [ openssl libpcap ]
++ optionals stdenv.isLinux [ libcap libnfnetlink libnetfilter_conntrack libnetfilter_queue ];
enableParallelBuilding = true;
meta = {
homepage = http://tcpcrypt.org/;
description = "Fast TCP encryption";
platforms = platforms.all;
license = licenses.bsd2;
};
}