2015-11-19 07:38:11 +00:00
|
|
|
{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn, Security }:
|
2013-07-18 23:53:06 +01:00
|
|
|
|
2013-03-10 20:17:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-02-23 07:56:28 +00:00
|
|
|
version = "1.6.6";
|
2015-01-09 16:31:10 +00:00
|
|
|
name = "msmtp-${version}";
|
2007-09-03 13:10:57 +01:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2015-01-09 16:31:10 +00:00
|
|
|
url = "mirror://sourceforge/msmtp/${name}.tar.xz";
|
2017-02-23 07:56:28 +00:00
|
|
|
sha256 = "0ppvww0sb09bnsrpqnvlrn8vx231r24xn2iiwpy020mxc8gxn5fs";
|
2007-09-03 13:10:57 +01:00
|
|
|
};
|
|
|
|
|
2015-11-19 07:38:11 +00:00
|
|
|
buildInputs = [ openssl pkgconfig gnutls gsasl libidn ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
configureFlags =
|
|
|
|
stdenv.lib.optional stdenv.isDarwin [ "--with-macosx-keyring" ];
|
2010-05-27 20:33:33 +01:00
|
|
|
|
2015-01-09 16:31:10 +00:00
|
|
|
postInstall = ''
|
|
|
|
cp scripts/msmtpq/msmtp-queue scripts/msmtpq/msmtpq $prefix/bin/
|
|
|
|
chmod +x $prefix/bin/msmtp-queue $prefix/bin/msmtpq
|
|
|
|
'';
|
|
|
|
|
2013-03-10 20:17:17 +00:00
|
|
|
meta = {
|
2013-07-18 23:53:06 +01:00
|
|
|
description = "Simple and easy to use SMTP client with excellent sendmail compatibility";
|
2013-03-10 20:17:17 +00:00
|
|
|
homepage = "http://msmtp.sourceforge.net/";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.garbas ];
|
2015-11-19 07:38:11 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-03-10 20:17:17 +00:00
|
|
|
};
|
2007-09-03 13:10:57 +01:00
|
|
|
}
|