linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / networking / ssldump / default.nix
blobfc92f43981b614df21e439ac9f8f2049834f2e58
1 { lib, stdenv, fetchFromGitHub, openssl, libpcap }:
3 stdenv.mkDerivation {
4   pname = "ssldump";
5   version = "1.1";
7   src = fetchFromGitHub {
8     owner = "adulau";
9     repo = "ssldump";
10     rev = "7491b9851505acff95b2c68097e9b9f630d418dc";
11     sha256 = "1j3rln86khdnc98v50hclvqaq83a24c1rfzbcbajkbfpr4yxpnpd";
12   };
14   buildInputs = [ libpcap openssl ];
15   prePatch = ''
16     sed -i -e 's|#include.*net/bpf.h|#include <pcap/bpf.h>|' \
17       base/pcap-snoop.c
18   '';
19   configureFlags = [ "--with-pcap-lib=${libpcap}/lib"
20                      "--with-pcap-inc=${libpcap}/include"
21                      "--with-openssl-lib=${openssl}/lib"
22                      "--with-openssl-inc=${openssl}/include" ];
23   meta = {
24     description = "An SSLv3/TLS network protocol analyzer";
25     homepage = "http://ssldump.sourceforge.net";
26     license = "BSD-style";
27     maintainers = with lib.maintainers; [ aycanirican ];
28     platforms = lib.platforms.linux;
29   };