depot/third_party/nixpkgs/pkgs/tools/security/tcpcrypt/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
895 B
Nix

{ lib, stdenv, fetchFromGitHub, autoreconfHook
, openssl
, libcap, libpcap, libnfnetlink, libnetfilter_conntrack, libnetfilter_queue
}:
stdenv.mkDerivation rec {
pname = "tcpcrypt";
version = "0.5";
src = fetchFromGitHub {
repo = "tcpcrypt";
owner = "scslab";
rev = "v${version}";
sha256 = "0a015rlyvagz714pgwr85f8gjq1fkc0il7d7l39qcgxrsp15b96w";
};
postUnpack = "mkdir -vp $sourceRoot/m4";
outputs = [ "bin" "dev" "out" ];
nativeBuildInputs = [ autoreconfHook ];
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;
};
}