2017-09-05 10:11:27 -07:00
|
|
|
{ stdenv, fetchurl, ncurses, xlibsWrapper, bzip2, zlib, openssl
|
|
|
|
, gpm
|
|
|
|
, # Incompatible licenses, LGPLv3 - GPLv2
|
|
|
|
enableGuile ? false, guile ? null
|
|
|
|
, enablePython ? false, python ? null
|
|
|
|
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
|
|
|
|
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_1_8_5 ? null
|
2014-01-20 00:27:27 -08:00
|
|
|
}:
|
2013-03-15 03:50:09 -07:00
|
|
|
|
|
|
|
assert enableGuile -> guile != null;
|
2014-01-20 00:27:27 -08:00
|
|
|
assert enablePython -> python != null;
|
2007-07-17 12:29:53 -07:00
|
|
|
|
2010-04-12 15:56:13 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-20 00:16:19 -08:00
|
|
|
name = "elinks-0.12pre6";
|
2007-07-17 12:29:53 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-20 00:16:19 -08:00
|
|
|
url = http://elinks.or.cz/download/elinks-0.12pre6.tar.bz2;
|
|
|
|
sha256 = "1nnakbi01g7yd3zqwprchh5yp45br8086b0kbbpmnclabcvlcdiq";
|
2007-07-17 12:29:53 -07:00
|
|
|
};
|
|
|
|
|
2011-04-28 14:22:24 -07:00
|
|
|
patches = [ ./gc-init.patch ];
|
|
|
|
|
2017-09-05 10:11:27 -07:00
|
|
|
buildInputs = [ ncurses xlibsWrapper bzip2 zlib openssl spidermonkey_1_8_5 gpm ]
|
2014-01-20 00:27:27 -08:00
|
|
|
++ stdenv.lib.optional enableGuile guile
|
2017-09-05 10:11:27 -07:00
|
|
|
++ stdenv.lib.optional enablePython python
|
|
|
|
++ stdenv.lib.optional enablePerl perl
|
|
|
|
;
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-finger"
|
|
|
|
"--enable-html-highlight"
|
|
|
|
"--enable-gopher"
|
|
|
|
"--enable-cgi"
|
|
|
|
"--enable-bittorrent"
|
|
|
|
"--enable-nntp"
|
|
|
|
"--with-openssl=${openssl.dev}"
|
|
|
|
"--with-bzip2=${bzip2.dev}"
|
|
|
|
] ++ stdenv.lib.optional enableGuile "--with-guile"
|
|
|
|
++ stdenv.lib.optional enablePython "--with-python"
|
|
|
|
++ stdenv.lib.optional enablePerl "--with-perl"
|
|
|
|
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey_1_8_5}"
|
|
|
|
;
|
2010-08-11 13:14:25 -07:00
|
|
|
|
2007-07-17 12:29:53 -07:00
|
|
|
meta = {
|
2010-07-28 04:55:54 -07:00
|
|
|
description = "Full-featured text-mode web browser";
|
2007-09-11 04:15:37 -07:00
|
|
|
homepage = http://elinks.or.cz;
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-07-17 12:29:53 -07:00
|
|
|
};
|
|
|
|
}
|