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
|
|
|
};
|
|
|
|
|
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";
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|