|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, openssl ? null, gpgme ? null |
|
|
|
|
, gpgSupport ? true, sslSupport ? true }: |
|
|
|
|
, gpgSupport ? true, sslSupport ? true, fetchpatch }: |
|
|
|
|
|
|
|
|
|
assert gpgSupport -> gpgme != null; |
|
|
|
|
assert sslSupport -> openssl != null; |
|
|
|
@ -15,6 +15,17 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
patches = [ |
|
|
|
|
(fetchpatch { |
|
|
|
|
# patch upstream bug https://sylpheed.sraoss.jp/redmine/issues/306 |
|
|
|
|
name = "patch-libsylph_ssl_c.patch"; |
|
|
|
|
url = "https://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/ports/mail/sylpheed/patches/patch-libsylph_ssl_c?rev=1.4&content-type=text/plain"; |
|
|
|
|
sha256 = "sha256-k9OwPtHrEjaxXdH0trNqXgJMhR8kjgtei9pi6OFvILk="; |
|
|
|
|
}) |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
patchFlags = [ "-p0" ]; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ]; |
|
|
|
|
|
|
|
|
|
buildInputs = [ gtk2 ] |
|
|
|
|