crun: 1.8.3 -> 1.8.4
[NixPkgs.git] / pkgs / tools / networking / ssldump / default.nix
blobb502f8e4b91f99103d36f8714acd1b02519665f3
1 { lib
2 , stdenv
3 , autoreconfHook
4 , fetchFromGitHub
5 , json_c
6 , libnet
7 , libpcap
8 , openssl
9 }:
11 stdenv.mkDerivation rec {
12   pname = "ssldump";
13   version = "1.6";
15   src = fetchFromGitHub {
16     owner = "adulau";
17     repo = "ssldump";
18     rev = "v${version}";
19     sha256 = "sha256-mK8n+Dn7fUzmclUzlIqGjO2zzIVKQEhSRvYeuFwVJx8=";
20   };
22   nativeBuildInputs = [
23     autoreconfHook
24   ];
26   buildInputs = [
27     json_c
28     libnet
29     libpcap
30     openssl
31   ];
33   prePatch = ''
34     sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
35       base/pcap-snoop.c
36   '';
38   configureFlags = [
39     "--with-pcap-lib=${libpcap}/lib"
40     "--with-pcap-inc=${libpcap}/include"
41     "--with-openssl-lib=${openssl}/lib"
42     "--with-openssl-inc=${openssl}/include"
43   ];
45   meta = with lib; {
46     description = "An SSLv3/TLS network protocol analyzer";
47     homepage = "https://ssldump.sourceforge.net";
48     license = "BSD-style";
49     maintainers = with maintainers; [ aycanirican ];
50     platforms = platforms.unix;
51   };