2006-04-28 20:02:52 +01:00
|
|
|
{ stdenv, fetchurl
|
|
|
|
, sslSupport ? true
|
|
|
|
, graphicsSupport ? false
|
2009-10-28 15:06:18 +00:00
|
|
|
, ncurses, openssl ? null, boehmgc, gettext, zlib
|
|
|
|
, imlib2 ? null, x11 ? null
|
2005-09-14 17:23:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
2009-10-28 15:06:18 +00:00
|
|
|
assert graphicsSupport -> x11 != null;
|
2005-09-14 17:23:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-09-11 21:05:54 +01:00
|
|
|
name = "w3m-0.5.2";
|
2008-11-14 11:16:54 +00:00
|
|
|
|
2005-09-14 17:23:02 +01:00
|
|
|
src = fetchurl {
|
2007-09-11 21:05:54 +01:00
|
|
|
url = mirror://sourceforge/w3m/w3m-0.5.2.tar.gz;
|
|
|
|
md5 = "ba06992d3207666ed1bf2dcf7c72bf58";
|
2005-09-14 17:23:02 +01:00
|
|
|
};
|
2008-11-14 11:16:54 +00:00
|
|
|
|
|
|
|
buildInputs = [ncurses boehmgc gettext zlib]
|
|
|
|
++ stdenv.lib.optional sslSupport openssl
|
2009-10-28 15:06:18 +00:00
|
|
|
++ stdenv.lib.optionals graphicsSupport [imlib2 x11];
|
2008-11-14 11:16:54 +00:00
|
|
|
|
|
|
|
configureFlags = "--with-ssl=${openssl} --with-gc=${boehmgc}";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace ./configure --replace /usr /no-such-path
|
|
|
|
'';
|
2008-01-30 19:49:42 +00:00
|
|
|
|
|
|
|
meta = {
|
2008-11-14 11:16:54 +00:00
|
|
|
homepage = http://w3m.sourceforge.net/;
|
|
|
|
description = "A text-mode web browser";
|
2008-01-30 19:49:42 +00:00
|
|
|
};
|
2005-09-14 17:23:02 +01:00
|
|
|
}
|