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

31 lines
962 B
Nix
Raw Normal View History

2016-10-19 14:15:42 +00:00
{ stdenv, fetchFromGitHub, openssl, libpcap }:
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "ssldump";
2020-05-26 22:08:05 +00:00
version = "1.1";
2016-10-19 14:15:42 +00:00
src = fetchFromGitHub {
owner = "adulau";
repo = "ssldump";
2020-05-26 22:08:05 +00:00
rev = "7491b9851505acff95b2c68097e9b9f630d418dc";
sha256 = "1j3rln86khdnc98v50hclvqaq83a24c1rfzbcbajkbfpr4yxpnpd";
2016-10-19 14:15:42 +00:00
};
buildInputs = [ 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 = {
description = "ssldump is an SSLv3/TLS network protocol analyzer";
homepage = "http://ssldump.sourceforge.net";
2016-10-19 14:15:42 +00:00
license = "BSD-style";
maintainers = with stdenv.lib.maintainers; [ aycanirican ];
platforms = stdenv.lib.platforms.linux;
};
}