nixpkgs/pkgs/applications/networking/mailreaders/sylpheed/default.nix

39 lines
942 B
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, gtk2
, openssl ? null
, gpgme ? null
2015-03-21 13:05:16 +00:00
, sslSupport ? true
, gpgSupport ? true
}:
with stdenv.lib;
assert sslSupport -> openssl != null;
assert gpgSupport -> gpgme != null;
2016-04-29 03:36:42 +01:00
stdenv.mkDerivation rec {
name = "sylpheed-${version}";
2017-03-30 01:07:54 +01:00
version = "3.5.1";
src = fetchurl {
2016-04-29 03:36:42 +01:00
url = "http://sylpheed.sraoss.jp/sylpheed/v3.5/${name}.tar.bz2";
2017-03-30 01:07:54 +01:00
sha256 = "11qhbfyvi5hxv1f448zgbzgrdjj3a4mxj2bfpk6k4bqf7ahh8nis";
};
2017-03-30 01:07:54 +01:00
nativeBuildInputs = [ pkgconfig ];
buildInputs =
2017-03-30 01:07:54 +01:00
[ gtk2 ]
++ optional sslSupport openssl
++ optional gpgSupport gpgme;
2014-11-23 22:43:23 +00:00
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 ];
2017-04-22 00:05:32 +01:00
platforms = platforms.linux ++ platforms.darwin;
license = "GPL";
};
}