2010-11-26 19:43:55 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, gzip
|
2004-07-26 12:33:58 +02:00
|
|
|
, sslSupport ? true, openssl ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert sslSupport -> openssl != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-05-22 12:57:17 +02:00
|
|
|
name = "lynx-2.8.8";
|
2010-02-03 13:24:03 +01:00
|
|
|
|
2004-07-26 12:33:58 +02:00
|
|
|
src = fetchurl {
|
2014-05-22 12:57:17 +02:00
|
|
|
url = http://lynx.isc.org/lynx2.8.8/lynx2.8.8.tar.bz2;
|
|
|
|
sha256 = "1rxysl08acqll5b87368f04kckl8sggy1qhnq59gsxyny1ffg039";
|
2004-07-26 12:33:58 +02:00
|
|
|
};
|
2010-02-03 13:24:03 +01:00
|
|
|
|
2014-01-14 02:16:27 +01:00
|
|
|
configureFlags = if sslSupport then "--with-ssl=${openssl}" else "";
|
2010-02-03 13:24:03 +01:00
|
|
|
|
2014-01-14 02:16:27 +01:00
|
|
|
buildInputs = [ ncurses gzip ];
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ ncurses ];
|
2006-10-12 12:53:16 +02:00
|
|
|
|
2010-10-12 22:57:02 +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
|
|
|
}
|