nixpkgs/pkgs/applications/networking/mailreaders/sylpheed/default.nix
2021-01-30 21:48:57 +01:00

35 lines
951 B
Nix

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