biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / sslsplit / default.nix
blobca8a96d3321f438c1cc781e3d3262302cdbd1c9f
1 { lib, stdenv, fetchFromGitHub, fetchpatch, openssl, libevent, libpcap, libnet, zlib }:
3 stdenv.mkDerivation rec {
4   pname = "sslsplit";
5   version = "0.5.5";
7   src = fetchFromGitHub {
8     owner = "droe";
9     repo = pname;
10     rev = version;
11     sha256 = "1p43z9ln5rbc76v0j1k3r4nhvfw71hq8jzsallb54z9hvwfvqp3l";
12   };
14   patches = [
15     (fetchpatch {
16       name = "fix-openssl-3-build.patch";
17       url = "https://github.com/droe/sslsplit/commit/e17de8454a65d2b9ba432856971405dfcf1e7522.patch";
18       hash = "sha256-sEwP7f2PSqXdMqLub9zrfQgH8I4oe9klVPzNpJjrPJ8=";
19     })
20   ];
22   buildInputs = [ openssl libevent libpcap libnet zlib ];
24   makeFlags = [
25     "PREFIX=$(out)"
26     "OPENSSL_BASE=${openssl.dev}"
27     "LIBEVENT_BASE=${libevent.dev}"
28     "LIBPCAP_BASE=${libpcap}"
29     "LIBNET_BASE=${libnet}"
30   ];
32   meta = with lib; {
33     description = "Transparent SSL/TLS interception";
34     homepage = "https://www.roe.ch/SSLsplit";
35     platforms = platforms.all;
36     maintainers = with maintainers; [ contrun ];
37     license = with licenses; [ bsd2 mit unlicense free ];
38     mainProgram = "sslsplit";
39   };