depot/third_party/nixpkgs/pkgs/tools/networking/ssldump/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

53 lines
1 KiB
Nix

{ lib
, stdenv
, autoreconfHook
, fetchFromGitHub
, json_c
, libnet
, libpcap
, openssl
}:
stdenv.mkDerivation rec {
pname = "ssldump";
version = "1.7";
src = fetchFromGitHub {
owner = "adulau";
repo = "ssldump";
rev = "v${version}";
sha256 = "sha256-BFE42wWqnGGTTjwej3LkH4XW2M4jP7XNSKHLnF2GFJo=";
};
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 = "https://ssldump.sourceforge.net";
license = "BSD-style";
maintainers = with maintainers; [ aycanirican ];
platforms = platforms.unix;
mainProgram = "ssldump";
};
}