My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/tools/networking/ssldump/default.nix

52 lines
996 B

{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, json_c
, libnet
, libpcap
, openssl
}:
stdenv.mkDerivation rec {
pname = "ssldump";
version = "1.4";
src = fetchFromGitHub {
owner = "adulau";
repo = "ssldump";
rev = "v${version}";
sha256 = "1xnlfqsl93nxbcv4x4xsgxa6mnhcx37hijrpdb7vzla6q7xvg8qr";
};
nativeBuildInputs = [
autoreconfHook
];
buildInputs = [
json_c
libnet
libpcap
openssl
];
prePatch = ''
sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
base/pcap-snoop.c
'';
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";
license = "BSD-style";
maintainers = with maintainers; [ aycanirican ];
platforms = platforms.unix;
};
}