nixpkgs/pkgs/applications/networking/msmtp/default.nix

27 lines
812 B
Nix
Raw Normal View History

{ stdenv, fetchurl, openssl, pkgconfig, gnutls, gsasl, libidn }:
stdenv.mkDerivation rec {
version = "1.6.2";
2015-01-09 17:31:10 +01:00
name = "msmtp-${version}";
src = fetchurl {
2015-01-09 17:31:10 +01:00
url = "mirror://sourceforge/msmtp/${name}.tar.xz";
sha256 = "12c7ljahb06pgn8yvvw526xvr11vnr6d4nr0apylixddpxycsvig";
};
buildInputs = [ openssl pkgconfig gnutls gsasl libidn ];
2015-01-09 17:31:10 +01: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.linux;
};
}