2010-11-26 18:43:55 +00:00
|
|
|
{ stdenv, fetchurl, ncurses, gzip
|
2004-07-26 10:33:58 +00:00
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
2016-03-18 04:28:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lynx-${version}";
|
2017-02-22 23:32:55 +00:00
|
|
|
version = "2.8.9dev.11";
|
|
|
|
|
2004-07-26 10:33:58 +00:00
|
|
|
src = fetchurl {
|
2016-03-18 04:28:19 +00:00
|
|
|
url = "http://invisible-mirror.net/archives/lynx/tarballs/lynx${version}.tar.bz2";
|
2017-02-22 23:32:55 +00:00
|
|
|
sha256 = "1cqm1i7d209brkrpzaqqf2x951ra3l67dw8x9yg10vz7rpr9441a";
|
2004-07-26 10:33:58 +00:00
|
|
|
};
|
2017-02-22 23:32:55 +00:00
|
|
|
|
2016-03-18 04:28:19 +00:00
|
|
|
configureFlags = []
|
2016-04-16 17:44:32 +00:00
|
|
|
++ stdenv.lib.optionals sslSupport [ "--with-ssl=${openssl.dev}" ];
|
2017-02-22 23:32:55 +00:00
|
|
|
|
2014-01-14 01:16:27 +00:00
|
|
|
buildInputs = [ ncurses gzip ];
|
2006-10-12 10:53:16 +00:00
|
|
|
|
2010-10-12 20:57:02 +00:00
|
|
|
crossAttrs = {
|
2016-03-18 04:28:19 +00:00
|
|
|
configureFlags = configureFlags ++ [ "--enable-widec" ];
|
2010-10-12 20:57:02 +00:00
|
|
|
};
|
|
|
|
|
2017-02-22 23:32:55 +00:00
|
|
|
meta = with stdenv.lib; {
|
2010-02-03 12:24:03 +00:00
|
|
|
homepage = http://lynx.isc.org/;
|
2006-10-12 10:53:16 +00:00
|
|
|
description = "A text-mode web browser";
|
2017-02-22 23:32:55 +00:00
|
|
|
platforms = platforms.unix;
|
2006-10-12 10:53:16 +00:00
|
|
|
};
|
2004-07-26 10:33:58 +00:00
|
|
|
}
|