nixpkgs/pkgs/applications/networking/mailreaders/sylpheed/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

37 lines
957 B
Nix

{ stdenv, fetchurl, pkgconfig, gtk2, openssl ? null, gpgme ? null
, gpgSupport ? true, sslSupport ? true }:
assert gpgSupport -> gpgme != null;
assert sslSupport -> openssl != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "sylpheed-${version}";
version = "3.7.0";
src = fetchurl {
url = "https://sylpheed.sraoss.jp/sylpheed/v3.7/${name}.tar.xz";
sha256 = "0j9y5vdzch251s264diw9clrn88dn20bqqkwfmis9l7m8vmwasqd";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gtk2 ]
++ optionals gpgSupport [ gpgme ]
++ optionals sslSupport [ openssl ];
configureFlags = [
(optional gpgSupport "--enable-gpgme")
(optional sslSupport "--enable-ssl")
];
meta = {
homepage = http://sylpheed.sraoss.jp/en/;
description = "Lightweight and user-friendly e-mail client";
maintainers = with maintainers; [ eelco ];
platforms = platforms.linux ++ platforms.darwin;
license = licenses.gpl2;
};
}