2005-05-26 22:09:29 +02:00
|
|
|
{ sslSupport ? true
|
2005-12-19 11:34:01 +01:00
|
|
|
, gpgSupport ? false
|
|
|
|
, stdenv, fetchurl, pkgconfig, gtk, glib
|
|
|
|
, openssl ? null
|
|
|
|
, gpgme ? null
|
2005-05-26 22:09:29 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
2005-12-19 11:34:01 +01:00
|
|
|
assert gpgSupport -> gpgme != null;
|
2005-05-26 22:09:29 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-12-19 11:34:01 +01:00
|
|
|
name = "sylpheed-2.1.9";
|
2005-05-26 22:09:29 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2005-12-19 11:34:01 +01:00
|
|
|
url = http://sylpheed.good-day.net/sylpheed/v2.1/sylpheed-2.1.9.tar.bz2;
|
|
|
|
md5 = "fe05714e5037d56ccdcf4b36fe4e9346";
|
2005-05-26 22:09:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig glib gtk
|
|
|
|
(if sslSupport then openssl else null)
|
2005-12-19 11:34:01 +01:00
|
|
|
(if gpgSupport then gpgme else null)
|
2005-05-26 22:09:29 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
(if sslSupport then "--enable-ssl" else null)
|
|
|
|
];
|
2005-10-14 14:26:40 +02:00
|
|
|
|
|
|
|
# Bug in Sylpheed: it makes direct X11 calls (e.g., XSync), but it
|
|
|
|
# doesn't pass -lX11. The linker finds the missing symbols
|
|
|
|
# indirectly (through GTK etc.), but doesn't include libX11.so in
|
|
|
|
# the RPATH. Thus, the executable fails at runtime.
|
|
|
|
NIX_LDFLAGS = "-lX11";
|
2005-05-26 22:09:29 +02:00
|
|
|
}
|