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