nixpkgs/pkgs/tools/security/tcpcrypt/default.nix
Joachim Fasting 07933ad15f
tcpcrypt: 0.3-rc1 -> 0.4, refactoring
- Use `fetchFromGitHub`
- Cleanup build inputs
- meta cleanups
- Strip binaries
- Multiple outputs
2016-06-03 15:43:12 +02:00

35 lines
848 B
Nix

{ 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;
};
}