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";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "20201014.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.jetmore.org/john/code/swaks/files/${pname}-${version}.tar.gz";
|
2021-02-13 14:23:35 +00:00
|
|
|
sha256 = "0c2sx4nrh4whsqzj6m5ay8d7yqan3aqgg436p8jb25bs91ykn2pv";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv swaks $out/bin/
|
|
|
|
|
|
|
|
wrapProgram $out/bin/swaks --set PERL5LIB \
|
|
|
|
"${with perlPackages; makePerlPath [
|
|
|
|
NetSSLeay AuthenSASL NetDNS IOSocketInet6
|
|
|
|
]}"
|
|
|
|
'';
|
|
|
|
|
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";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|