From f0e0bd18ed804d2b2b4105b450e3ce2b2143660a Mon Sep 17 00:00:00 2001 From: Michael Brantley Date: Wed, 28 Feb 2018 10:49:09 +0000 Subject: [PATCH] perlPackages.Mail-Sendmail: init at 0.80 (#35223) * perl-Mail-Sendmail: init at 0.80 * Disabled unit test that could never succeed in sandbox --- pkgs/top-level/perl-packages.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 7608e6d8347..30afb74e82e 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -8475,6 +8475,27 @@ let self = _self // overrides; _self = with self; { }; }; + MailSendmail = buildPerlPackage rec { + name = "Mail-Sendmail-0.80"; + src = fetchurl { + url = "mirror://cpan/authors/id/N/NE/NEILB/Mail-Sendmail-0.80.tar.gz"; + sha256 = "1r38qbkj7jwj8cqy1rnqzkk81psxi08b1aiq392817f3bk5ri2jv"; + }; + propagatedBuildInputs = [ DigestMD5 MIMEBase64 Socket TimeLocal ]; + # The test suite simply loads the module and attempts to send an email to + # the module's author, the latter of which is a) more of an integration + # test, b) impossible to verify, and c) won't work from a sandbox. Replace + # it in its entirety with the following simple smoke test. + checkPhase = '' + perl -I blib/lib -MMail::Sendmail -e 'print "1..1\nok 1\n"' + ''; + meta = { + maintainers = [ maintainers.limeytexan ]; + description = "Simple platform independent mailer"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + MailSPF = buildPerlPackage rec { name = "Mail-SPF-v2.9.0"; #src = /root/nixops/Mail-SPF-v2.9.0;