nixpkgs-suyu/pkgs/tools/networking/ssldump/default.nix

53 lines
997 B
Nix
Raw Normal View History

2021-08-28 12:12:04 +02:00
{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, json_c
, libnet
, libpcap
, openssl
}:
2016-10-19 16:15:42 +02:00
2021-08-28 12:12:04 +02:00
stdenv.mkDerivation rec {
pname = "ssldump";
2021-08-28 12:12:04 +02:00
version = "1.4";
2016-10-19 16:15:42 +02:00
src = fetchFromGitHub {
owner = "adulau";
repo = "ssldump";
2021-08-28 12:12:04 +02:00
rev = "v${version}";
sha256 = "1xnlfqsl93nxbcv4x4xsgxa6mnhcx37hijrpdb7vzla6q7xvg8qr";
2016-10-19 16:15:42 +02:00
};
2021-08-28 12:12:04 +02:00
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
json_c
libnet
libpcap
openssl
];
2016-10-19 16:15:42 +02:00
prePatch = ''
sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
base/pcap-snoop.c
'';
2021-08-28 12:12:04 +02:00
configureFlags = [
"--with-pcap-lib=${libpcap}/lib"
"--with-pcap-inc=${libpcap}/include"
"--with-openssl-lib=${openssl}/lib"
"--with-openssl-inc=${openssl}/include"
];
meta = with lib; {
description = "An SSLv3/TLS network protocol analyzer";
homepage = "http://ssldump.sourceforge.net";
2016-10-19 16:15:42 +02:00
license = "BSD-style";
2021-08-28 12:12:04 +02:00
maintainers = with maintainers; [ aycanirican ];
platforms = platforms.linux;
2016-10-19 16:15:42 +02:00
};
}