2017-09-05 18:11:27 +01: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
|
2019-08-01 22:18:26 +01:00
|
|
|
, enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey ? null
|
2014-01-20 08:27:27 +00:00
|
|
|
}:
|
2013-03-15 10:50:09 +00:00
|
|
|
|
|
|
|
assert enableGuile -> guile != null;
|
2014-01-20 08:27:27 +00:00
|
|
|
assert enablePython -> python != null;
|
2007-07-17 20:29:53 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2014-01-20 08:16:19 +00:00
|
|
|
name = "elinks-0.12pre6";
|
2007-07-17 20:29:53 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-01-20 08:16:19 +00:00
|
|
|
url = http://elinks.or.cz/download/elinks-0.12pre6.tar.bz2;
|
|
|
|
sha256 = "1nnakbi01g7yd3zqwprchh5yp45br8086b0kbbpmnclabcvlcdiq";
|
2007-07-17 20:29:53 +01:00
|
|
|
};
|
|
|
|
|
2020-02-28 16:29:24 +00:00
|
|
|
patches = [
|
|
|
|
./gc-init.patch
|
|
|
|
./openssl-1.1.patch
|
|
|
|
];
|
2011-04-28 22:22:24 +01:00
|
|
|
|
2019-08-01 22:18:26 +01:00
|
|
|
buildInputs = [ ncurses xlibsWrapper bzip2 zlib openssl spidermonkey gpm ]
|
2014-01-20 08:27:27 +00:00
|
|
|
++ stdenv.lib.optional enableGuile guile
|
2017-09-05 18:11:27 +01: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"
|
2019-08-01 22:18:26 +01:00
|
|
|
++ stdenv.lib.optional enableSpidermonkey "--with-spidermonkey=${spidermonkey}"
|
2017-09-05 18:11:27 +01:00
|
|
|
;
|
2010-08-11 21:14:25 +01:00
|
|
|
|
2007-07-17 20:29:53 +01:00
|
|
|
meta = {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "Full-featured text-mode web browser";
|
2007-09-11 12:15:37 +01:00
|
|
|
homepage = http://elinks.or.cz;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2007-07-17 20:29:53 +01:00
|
|
|
};
|
|
|
|
}
|