2018-01-11 14:04:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2, openssl ? null, gpgme ? null
|
|
|
|
, gpgSupport ? true, sslSupport ? true }:
|
2005-05-26 21:09:29 +01:00
|
|
|
|
2005-12-19 10:34:01 +00:00
|
|
|
assert gpgSupport -> gpgme != null;
|
2018-01-11 14:04:44 +00:00
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
with stdenv.lib;
|
2005-05-26 21:09:29 +01:00
|
|
|
|
2016-04-29 03:36:42 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-07 14:30:59 +01:00
|
|
|
name = "sylpheed-${version}";
|
2018-03-29 17:54:11 +01:00
|
|
|
version = "3.7.0";
|
2005-05-26 21:09:29 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-29 17:54:11 +01:00
|
|
|
url = "http://sylpheed.sraoss.jp/sylpheed/v3.7/${name}.tar.xz";
|
|
|
|
sha256 = "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd";
|
2005-05-26 21:09:29 +01:00
|
|
|
};
|
|
|
|
|
2017-03-30 01:07:54 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2005-05-26 21:09:29 +01:00
|
|
|
|
2018-01-11 14:04:44 +00:00
|
|
|
buildInputs = [ gtk2 ]
|
|
|
|
++ optionals gpgSupport [ gpgme ]
|
|
|
|
++ optionals sslSupport [ openssl ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
(optional gpgSupport "--enable-gpgme")
|
|
|
|
(optional sslSupport "--enable-ssl")
|
|
|
|
];
|
2005-10-14 13:26:40 +01:00
|
|
|
|
2012-10-15 16:27:37 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://sylpheed.sraoss.jp/en/;
|
2018-01-11 14:04:44 +00:00
|
|
|
description = "Lightweight and user-friendly e-mail client";
|
|
|
|
maintainers = with maintainers; [ eelco ];
|
2017-04-22 00:05:32 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-01-11 14:04:44 +00:00
|
|
|
license = licenses.gpl2;
|
2012-10-15 16:27:37 +01:00
|
|
|
};
|
2005-05-26 21:09:29 +01:00
|
|
|
}
|