2014-11-05 21:43:12 +01:00
|
|
|
{ stdenv, fetchurl, perl, perlPackages, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "swaks";
|
2019-10-24 04:10:28 +02:00
|
|
|
version = "20190914.0";
|
2014-11-05 21:43:12 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.jetmore.org/john/code/swaks/files/${pname}-${version}.tar.gz";
|
2019-10-24 04:10:28 +02:00
|
|
|
sha256 = "12awq5z4sdd54cxprj834zajxhkpy4jwhzf1fhigcx1zbhdaacsp";
|
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 \
|
2018-12-15 04:50:31 +01:00
|
|
|
"${with perlPackages; makePerlPath [
|
2014-11-05 21:43:12 +01:00
|
|
|
NetSSLeay AuthenSASL NetDNS IOSocketInet6
|
|
|
|
]}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-11-01 09:13:25 +01:00
|
|
|
homepage = "http://www.jetmore.org/john/code/swaks/";
|
|
|
|
description = "A featureful, flexible, scriptable, transaction-oriented SMTP test tool";
|
2014-11-05 21:43:12 +01:00
|
|
|
license = licenses.gpl2;
|
2019-12-26 22:28:10 +01:00
|
|
|
maintainers = with maintainers; [];
|
2014-11-05 21:43:12 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|