2016-09-11 14:24:51 -07:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk2
|
2005-12-19 02:34:01 -08:00
|
|
|
, openssl ? null
|
|
|
|
, gpgme ? null
|
2015-03-21 06:05:16 -07:00
|
|
|
, sslSupport ? true
|
|
|
|
, gpgSupport ? true
|
2005-05-26 13:09:29 -07:00
|
|
|
}:
|
|
|
|
|
2012-10-15 08:27:37 -07:00
|
|
|
with stdenv.lib;
|
|
|
|
|
2005-05-26 13:09:29 -07:00
|
|
|
assert sslSupport -> openssl != null;
|
2005-12-19 02:34:01 -08:00
|
|
|
assert gpgSupport -> gpgme != null;
|
2005-05-26 13:09:29 -07:00
|
|
|
|
2016-04-28 19:36:42 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-07 06:30:59 -07:00
|
|
|
name = "sylpheed-${version}";
|
2017-03-29 17:07:54 -07:00
|
|
|
version = "3.5.1";
|
2005-05-26 13:09:29 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-04-28 19:36:42 -07:00
|
|
|
url = "http://sylpheed.sraoss.jp/sylpheed/v3.5/${name}.tar.bz2";
|
2017-03-29 17:07:54 -07:00
|
|
|
sha256 = "11qhbfyvi5hxv1f448zgbzgrdjj3a4mxj2bfpk6k4bqf7ahh8nis";
|
2005-05-26 13:09:29 -07:00
|
|
|
};
|
|
|
|
|
2017-03-29 17:07:54 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2012-10-15 08:27:37 -07:00
|
|
|
buildInputs =
|
2017-03-29 17:07:54 -07:00
|
|
|
[ gtk2 ]
|
2012-10-15 08:27:37 -07:00
|
|
|
++ optional sslSupport openssl
|
|
|
|
++ optional gpgSupport gpgme;
|
2005-05-26 13:09:29 -07:00
|
|
|
|
2014-11-23 14:43:23 -08:00
|
|
|
configureFlags = optional sslSupport "--enable-ssl"
|
|
|
|
++ optional gpgSupport "--enable-gpgme";
|
2005-10-14 05:26:40 -07:00
|
|
|
|
2012-10-15 08:27:37 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://sylpheed.sraoss.jp/en/;
|
|
|
|
description = "A lightweight and user-friendly e-mail client";
|
|
|
|
maintainers = [ maintainers.eelco ];
|
2017-04-21 16:05:32 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2012-10-15 08:27:37 -07:00
|
|
|
license = "GPL";
|
|
|
|
};
|
2005-05-26 13:09:29 -07:00
|
|
|
}
|