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