3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/msmtp/default.nix

31 lines
962 B
Nix
Raw Normal View History

{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn, Security }:
stdenv.mkDerivation rec {
2016-04-12 21:26:44 +01:00
version = "1.6.4";
2015-01-09 16:31:10 +00:00
name = "msmtp-${version}";
src = fetchurl {
2015-01-09 16:31:10 +00:00
url = "mirror://sourceforge/msmtp/${name}.tar.xz";
2016-04-12 21:26:44 +01:00
sha256 = "1kfihblm769s4hv8iah5mqynqd6hfwlyz5rcg2v423a4llic0jcv";
};
buildInputs = [ openssl pkgconfig gnutls gsasl libidn ]
++ stdenv.lib.optional stdenv.isDarwin Security;
configureFlags =
stdenv.lib.optional stdenv.isDarwin [ "--with-macosx-keyring" ];
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
'';
meta = {
description = "Simple and easy to use SMTP client with excellent sendmail compatibility";
homepage = "http://msmtp.sourceforge.net/";
license = stdenv.lib.licenses.gpl3;
maintainers = [ stdenv.lib.maintainers.garbas ];
platforms = stdenv.lib.platforms.unix;
};
}