2004-07-26 12:33:58 +02:00
|
|
|
{ stdenv, fetchurl, ncurses
|
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-12-25 15:34:11 +01:00
|
|
|
name = "lynx-2.8.7";
|
2010-02-03 13:24:03 +01:00
|
|
|
|
2004-07-26 12:33:58 +02:00
|
|
|
src = fetchurl {
|
2009-12-25 15:34:11 +01:00
|
|
|
url = http://lynx.isc.org/lynx2.8.7/lynx2.8.7.tar.bz2;
|
|
|
|
sha256 = "1baxwpdvak6nalr943g22z67r1d3fbibbkqvkvvar9xlvrs9gv20";
|
2004-07-26 12:33:58 +02:00
|
|
|
};
|
2010-02-03 13:24:03 +01:00
|
|
|
|
|
|
|
configureFlags = if sslSupport then "--with-ssl" else "";
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ] ++ stdenv.lib.optional sslSupport openssl;
|
2010-08-11 22:11:12 +02:00
|
|
|
buildNativeInputs = [ ncurses ];
|
2006-10-12 12:53:16 +02:00
|
|
|
|
2010-10-12 20:31:11 +02:00
|
|
|
crossAttrs = {
|
|
|
|
configureFlags = "--enable-widec" +
|
|
|
|
(if sslSupport then " --with-ssl" else "");
|
|
|
|
};
|
|
|
|
|
2006-10-12 12:53:16 +02:00
|
|
|
meta = {
|
2010-02-03 13:24:03 +01:00
|
|
|
homepage = http://lynx.isc.org/;
|
2006-10-12 12:53:16 +02:00
|
|
|
description = "A text-mode web browser";
|
|
|
|
};
|
2004-07-26 12:33:58 +02:00
|
|
|
}
|