2014-11-05 20:43:12 +00:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "swaks";
|
2018-11-08 20:02:55 +00:00
|
|
|
version = "20181104.0";
|
2014-11-05 20:43:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://www.jetmore.org/john/code/swaks/files/${pname}-${version}.tar.gz";
|
2018-11-08 20:02:55 +00:00
|
|
|
sha256 = "0n1yd27xcyb1ylp5gln3yv5gzi9r377hjy1j32367kgb3247ygq2";
|
2014-11-05 20:43:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv swaks $out/bin/
|
|
|
|
|
|
|
|
wrapProgram $out/bin/swaks --set PERL5LIB \
|
2018-12-15 03:50:31 +00:00
|
|
|
"${with perlPackages; makePerlPath [
|
2014-11-05 20:43:12 +00:00
|
|
|
NetSSLeay AuthenSASL NetDNS IOSocketInet6
|
|
|
|
]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.jetmore.org/john/code/swaks/;
|
2014-11-05 20:43:12 +00:00
|
|
|
description = ''
|
|
|
|
A featureful, flexible, scriptable, transaction-oriented SMTP test tool
|
|
|
|
'';
|
|
|
|
license = licenses.gpl2;
|
2017-03-01 22:42:58 +00:00
|
|
|
maintainers = with maintainers; [ rickynils ndowens ];
|
2014-11-05 20:43:12 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|