nixpkgs/pkgs/by-name/tc/tcpcrypt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

55 lines
976 B
Nix
Raw Normal View History

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