2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, perlPackages, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaks";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "20240103.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.jetmore.org/john/code/swaks/files/${pname}-${version}.tar.gz";
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-DlMbTRZAWIAucmaxT03BiXCZ0Jb5MIIN4vm16wjc2+g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ perl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv swaks $out/bin/
|
|
|
|
|
|
|
|
wrapProgram $out/bin/swaks --set PERL5LIB \
|
|
|
|
"${with perlPackages; makePerlPath [
|
2022-12-17 10:02:37 +00:00
|
|
|
NetSSLeay AuthenSASL NetDNS IOSocketINET6
|
2020-04-24 23:36:52 +00:00
|
|
|
]}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.jetmore.org/john/code/swaks/";
|
|
|
|
description = "A featureful, flexible, scriptable, transaction-oriented SMTP test tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "swaks";
|
2021-02-13 14:23:35 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|