3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/tcpcrypt/default.nix

35 lines
848 B
Nix
Raw Normal View History

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