Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
21 deletions.
There are no files selected for viewing
40 changes: 19 additions & 21 deletions
40
pkgs/applications/networking/mailreaders/sylpheed/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,36 @@ | ||
{ stdenv, fetchurl, pkgconfig, gtk2 | ||
, openssl ? null | ||
, gpgme ? null | ||
, sslSupport ? true | ||
, gpgSupport ? true | ||
}: | ||
{ stdenv, fetchurl, pkgconfig, gtk2, openssl ? null, gpgme ? null | ||
, gpgSupport ? true, sslSupport ? true }: | ||
|
||
with stdenv.lib; | ||
|
||
assert sslSupport -> openssl != null; | ||
assert gpgSupport -> gpgme != null; | ||
assert sslSupport -> openssl != null; | ||
|
||
with stdenv.lib; | ||
|
||
stdenv.mkDerivation rec { | ||
name = "sylpheed-${version}"; | ||
version = "3.5.1"; | ||
version = "3.6.0"; | ||
|
||
src = fetchurl { | ||
url = "http://sylpheed.sraoss.jp/sylpheed/v3.5/${name}.tar.bz2"; | ||
sha256 = "11qhbfyvi5hxv1f448zgbzgrdjj3a4mxj2bfpk6k4bqf7ahh8nis"; | ||
url = "http://sylpheed.sraoss.jp/sylpheed/v3.6/${name}.tar.bz2"; | ||
sha256 = "0idk9nz3d200l2bxc38vnxlx0wcslrvncy9lk50vz7dl8c5sg97b"; | ||
}; | ||
|
||
nativeBuildInputs = [ pkgconfig ]; | ||
buildInputs = | ||
[ gtk2 ] | ||
++ optional sslSupport openssl | ||
++ optional gpgSupport gpgme; | ||
|
||
configureFlags = optional sslSupport "--enable-ssl" | ||
++ optional gpgSupport "--enable-gpgme"; | ||
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 = "A lightweight and user-friendly e-mail client"; | ||
maintainers = [ maintainers.eelco ]; | ||
description = "Lightweight and user-friendly e-mail client"; | ||
maintainers = with maintainers; [ eelco ]; | ||
platforms = platforms.linux ++ platforms.darwin; | ||
license = "GPL"; | ||
license = licenses.gpl2; | ||
}; | ||
} |