From e7b4ab5f1188b89fc2f02bbd1ef8cc74973778cf Mon Sep 17 00:00:00 2001 From: Reno Dakota <170618376+paparodeo@users.noreply.github.com> Date: Mon, 28 Oct 2024 09:02:47 +0000 Subject: [PATCH] ssldump: 1.7 -> 1.8-unstable-2024-10-16 cmake based build and builds on macos https://github.com/adulau/ssldump/compare/v1.7...a7534300bb09184fec991b3b4f19a40538b8adea --- pkgs/tools/networking/ssldump/default.nix | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/pkgs/tools/networking/ssldump/default.nix b/pkgs/tools/networking/ssldump/default.nix index ad39514f0e34..c0b38eec4aab 100644 --- a/pkgs/tools/networking/ssldump/default.nix +++ b/pkgs/tools/networking/ssldump/default.nix @@ -1,7 +1,7 @@ { lib , stdenv -, autoreconfHook , fetchFromGitHub +, cmake , json_c , libnet , libpcap @@ -10,17 +10,17 @@ stdenv.mkDerivation rec { pname = "ssldump"; - version = "1.7"; + version = "1.8-unstable-2024-10-16"; src = fetchFromGitHub { owner = "adulau"; repo = "ssldump"; - rev = "v${version}"; - sha256 = "sha256-BFE42wWqnGGTTjwej3LkH4XW2M4jP7XNSKHLnF2GFJo="; + rev = "a7534300bb09184fec991b3b4f19a40538b8adea"; + hash = "sha256-6jmIPkyT5QCqQw07unc6nKTlxpajiLO05IFshWtCh7w="; }; nativeBuildInputs = [ - autoreconfHook + cmake ]; buildInputs = [ @@ -30,18 +30,6 @@ stdenv.mkDerivation rec { openssl ]; - prePatch = '' - sed -i -e 's|#include.*net/bpf.h|#include |' \ - 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 = "SSLv3/TLS network protocol analyzer"; homepage = "https://ssldump.sourceforge.net";