1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/networking/swaks/default.nix

35 lines
898 B
Nix
Raw Normal View History

{ stdenv, fetchurl, perl, perlPackages, makeWrapper }:
stdenv.mkDerivation rec {
name = "swaks-${version}";
2017-03-01 22:42:58 +00:00
version = "20170101.0";
src = fetchurl {
url = "https://www.jetmore.org/john/code/swaks/files/${name}.tar.gz";
2017-03-01 22:42:58 +00:00
sha256 = "0pli4mlhasnqqxmmxalwyg3x7n2vhcbgsnp2xgddamjavv82vrl4";
};
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; {
homepage = http://www.jetmore.org/john/code/swaks/;
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 ];
platforms = platforms.all;
};
}