summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mailreaders/sylpheed/default.nix
blob: b1cdd509f98e44334774db93cd470ec2c974f29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchurl, pkgconfig, gtk2

, openssl ? null
, gpgme ? null
, sslSupport ? true
, gpgSupport ? true
}:

with stdenv.lib;

assert sslSupport -> openssl != null;
assert gpgSupport -> gpgme != null;

stdenv.mkDerivation rec {
  name = "sylpheed-${version}";
  version = "3.5.0";

  src = fetchurl {
    url = "http://sylpheed.sraoss.jp/sylpheed/v3.5/${name}.tar.bz2";
    sha256 = "0p50cr9h8b7cv1ayxhqxpj3kv0b7k9dga7lmmfb1lvyagg8n42sa";
  };

  buildInputs =
    [ pkgconfig gtk2 ]
    ++ optional sslSupport openssl
    ++ optional gpgSupport gpgme;

  configureFlags = optional sslSupport "--enable-ssl"
                ++ optional gpgSupport "--enable-gpgme";

  meta = {
    homepage = http://sylpheed.sraoss.jp/en/;
    description = "A lightweight and user-friendly e-mail client";
    maintainers = [ maintainers.eelco ];
    platforms = platforms.linux;
    license = "GPL";
  };
}