1 { lib, stdenv, fetchurl, perl, perlPackages, makeWrapper }:
3 stdenv.mkDerivation rec {
5 version = "20240103.0";
8 url = "https://www.jetmore.org/john/code/swaks/files/${pname}-${version}.tar.gz";
9 sha256 = "sha256-DlMbTRZAWIAucmaxT03BiXCZ0Jb5MIIN4vm16wjc2+g=";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ perl ];
19 wrapProgram $out/bin/swaks --set PERL5LIB \
20 "${with perlPackages; makePerlPath [
21 NetSSLeay AuthenSASL NetDNS IOSocketINET6
26 homepage = "http://www.jetmore.org/john/code/swaks/";
27 description = "Featureful, flexible, scriptable, transaction-oriented SMTP test tool";
28 mainProgram = "swaks";
29 license = licenses.gpl2Plus;
31 platforms = platforms.all;