2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, openssl ? null, gpgme ? null
|
2021-06-15 08:04:36 +00:00
|
|
|
, gpgSupport ? true, sslSupport ? true, fetchpatch }:
|
2005-05-26 20:09:29 +00: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;
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
with lib;
|
2005-05-26 20:09:29 +00:00
|
|
|
|
2016-04-29 02:36:42 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sylpheed";
|
2018-03-29 16:54:11 +00:00
|
|
|
version = "3.7.0";
|
2005-05-26 20:09:29 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://sylpheed.sraoss.jp/sylpheed/v3.7/${pname}-${version}.tar.xz";
|
2018-03-29 16:54:11 +00:00
|
|
|
sha256 = "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd";
|
2005-05-26 20:09:29 +00:00
|
|
|
};
|
|
|
|
|
2021-06-15 08:04:36 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# patch upstream bug https://sylpheed.sraoss.jp/redmine/issues/306
|
|
|
|
name = "patch-libsylph_ssl_c.patch";
|
2022-10-10 08:19:14 +00:00
|
|
|
extraPrefix = "";
|
2021-06-15 08:04:36 +00:00
|
|
|
url = "https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/sylpheed/patches/patch-libsylph_ssl_c?rev=1.4&content-type=text/plain";
|
2022-10-10 08:19:14 +00:00
|
|
|
sha256 = "sha256-+FetU5vrfvE78nYAjKK/QFZnFw+Zr2PvoUGRWCuZczs=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2021-37746.patch";
|
|
|
|
url = "https://git.claws-mail.org/?p=claws.git;a=patch;h=ac286a71ed78429e16c612161251b9ea90ccd431";
|
|
|
|
sha256 = "sha256-oLmUShtvO6io3jibKT67eO0O58vEDZEeaB51QTd3UkU=";
|
2021-06-15 08:04:36 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2005-05-26 20:09:29 +00:00
|
|
|
|
2018-01-11 14:04:44 +00:00
|
|
|
buildInputs = [ gtk2 ]
|
|
|
|
++ optionals gpgSupport [ gpgme ]
|
|
|
|
++ optionals sslSupport [ openssl ];
|
|
|
|
|
2019-11-20 09:17:54 +00:00
|
|
|
configureFlags = optional gpgSupport "--enable-gpgme"
|
|
|
|
++ optional sslSupport "--enable-ssl";
|
2005-10-14 12:26:40 +00:00
|
|
|
|
2012-10-15 15:27:37 +00:00
|
|
|
meta = {
|
2021-01-26 00:33:42 +00:00
|
|
|
homepage = "https://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-21 23:05:32 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2018-01-11 14:04:44 +00:00
|
|
|
license = licenses.gpl2;
|
2022-12-06 20:47:40 +00:00
|
|
|
# never built on aarch64-darwin since first introduction in nixpkgs
|
|
|
|
broken = stdenv.isDarwin && stdenv.isAarch64;
|
2012-10-15 15:27:37 +00:00
|
|
|
};
|
2005-05-26 20:09:29 +00:00
|
|
|
}
|