2014-01-20 09:27:27 +01:00
|
|
|
{ stdenv, fetchurl, perl, ncurses, x11, bzip2, zlib, openssl
|
2013-03-15 11:50:09 +01:00
|
|
|
, spidermonkey, gpm
|
2014-01-20 09:27:27 +01:00
|
|
|
, enableGuile ? true, guile ? null
|
|
|
|
, enablePython ? false, python ? null
|
|
|
|
}:
|
2013-03-15 11:50:09 +01:00
|
|
|
|
|
|
|
assert enableGuile -> guile != null;
|
2014-01-20 09:27:27 +01:00
|
|
|
assert enablePython -> python != null;
|
2007-07-17 21:29:53 +02:00
|
|
|
|
2010-04-13 00:56:13 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-20 09:16:19 +01:00
|
|
|
name = "elinks-0.12pre6";
|
2007-07-17 21:29:53 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-20 09:16:19 +01:00
|
|
|
url = http://elinks.or.cz/download/elinks-0.12pre6.tar.bz2;
|
|
|
|
sha256 = "1nnakbi01g7yd3zqwprchh5yp45br8086b0kbbpmnclabcvlcdiq";
|
2007-07-17 21:29:53 +02:00
|
|
|
};
|
|
|
|
|
2011-04-28 23:22:24 +02:00
|
|
|
patches = [ ./gc-init.patch ];
|
|
|
|
|
2014-01-20 09:27:27 +01:00
|
|
|
buildInputs = [ perl ncurses x11 bzip2 zlib openssl spidermonkey gpm ]
|
|
|
|
++ stdenv.lib.optional enableGuile guile
|
|
|
|
++ stdenv.lib.optional enablePython python;
|
2011-04-28 23:22:24 +02:00
|
|
|
|
2010-07-28 13:55:54 +02:00
|
|
|
configureFlags =
|
|
|
|
''
|
2013-03-15 11:50:09 +01:00
|
|
|
--enable-finger --enable-html-highlight
|
2014-01-20 09:27:27 +01:00
|
|
|
--with-perl --enable-gopher --enable-cgi --enable-bittorrent
|
2014-01-19 21:12:49 +01:00
|
|
|
--with-spidermonkey=${spidermonkey}
|
2010-07-28 13:55:54 +02:00
|
|
|
--enable-nntp --with-openssl=${openssl}
|
2014-01-20 09:27:27 +01:00
|
|
|
'' + stdenv.lib.optionalString enableGuile " --with-guile"
|
|
|
|
+ stdenv.lib.optionalString enablePython " --with-python";
|
2007-09-11 13:15:37 +02:00
|
|
|
|
2010-08-11 22:14:25 +02:00
|
|
|
crossAttrs = {
|
2012-12-28 19:08:19 +01:00
|
|
|
propagatedBuildInputs = [ ncurses.crossDrv zlib.crossDrv openssl.crossDrv ];
|
2010-08-11 22:14:25 +02:00
|
|
|
configureFlags = ''
|
|
|
|
--enable-finger --enable-html-highlight
|
|
|
|
--enable-gopher --enable-cgi --enable-bittorrent --enable-nntp
|
2012-12-28 19:08:19 +01:00
|
|
|
--with-openssl=${openssl.crossDrv}
|
|
|
|
--with-bzip2=${bzip2.crossDrv}
|
2010-08-11 22:14:25 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2007-07-17 21:29:53 +02:00
|
|
|
meta = {
|
2010-07-28 13:55:54 +02:00
|
|
|
description = "Full-featured text-mode web browser";
|
2007-09-11 13:15:37 +02:00
|
|
|
homepage = http://elinks.or.cz;
|
2007-07-17 21:29:53 +02:00
|
|
|
};
|
|
|
|
}
|