2020-10-10 14:18:53 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, ncurses, xlibsWrapper, bzip2, zlib
|
|
|
|
, brotli, zstd, lzma, openssl, autoreconfHook, gettext, pkgconfig, libev
|
|
|
|
, gpm, libidn, tre, expat
|
2017-09-05 17:11:27 +00:00
|
|
|
, # Incompatible licenses, LGPLv3 - GPLv2
|
|
|
|
enableGuile ? false, guile ? null
|
|
|
|
, enablePython ? false, python ? null
|
|
|
|
, enablePerl ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null
|
2020-10-10 14:18:53 +00:00
|
|
|
# re-add javascript support when upstream supports modern spidermonkey
|
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 19:29:53 +00:00
|
|
|
|
2020-06-26 21:59:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-10-10 14:18:53 +00:00
|
|
|
pname = "elinks";
|
|
|
|
version = "0.13.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rkd77";
|
|
|
|
repo = "felinks";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "067l9m47j40039q8mvvnxd1amwrac3x6vv0c0svimfpvj4ammgkg";
|
2007-07-17 19:29:53 +00:00
|
|
|
};
|
|
|
|
|
2020-10-10 14:18:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses xlibsWrapper bzip2 zlib brotli zstd lzma
|
|
|
|
openssl libidn tre expat libev
|
|
|
|
]
|
2020-06-26 21:59:28 +00:00
|
|
|
++ stdenv.lib.optional stdenv.isLinux gpm
|
2014-01-20 08:27:27 +00:00
|
|
|
++ stdenv.lib.optional enableGuile guile
|
2017-09-05 17:11:27 +00:00
|
|
|
++ stdenv.lib.optional enablePython python
|
|
|
|
++ stdenv.lib.optional enablePerl perl
|
|
|
|
;
|
2020-09-30 14:00:56 +00:00
|
|
|
|
2020-10-10 14:18:53 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook gettext pkgconfig ];
|
2017-09-05 17:11:27 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-finger"
|
|
|
|
"--enable-html-highlight"
|
|
|
|
"--enable-gopher"
|
|
|
|
"--enable-cgi"
|
|
|
|
"--enable-bittorrent"
|
|
|
|
"--enable-nntp"
|
2020-06-16 09:04:10 +00:00
|
|
|
"--enable-256-colors"
|
2020-10-10 14:18:53 +00:00
|
|
|
"--enable-true-color"
|
|
|
|
"--with-lzma"
|
2020-06-16 09:04:10 +00:00
|
|
|
"--with-libev"
|
2020-10-10 14:18:53 +00:00
|
|
|
"--with-terminfo"
|
2017-09-05 17:11:27 +00:00
|
|
|
] ++ stdenv.lib.optional enableGuile "--with-guile"
|
|
|
|
++ stdenv.lib.optional enablePython "--with-python"
|
|
|
|
++ stdenv.lib.optional enablePerl "--with-perl"
|
|
|
|
;
|
2020-09-30 14:00:56 +00:00
|
|
|
|
2020-06-26 21:59:28 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-06-16 09:04:10 +00:00
|
|
|
description = "Full-featured text-mode web browser (package based on the fork felinks)";
|
|
|
|
homepage = "https://github.com/rkd77/felinks";
|
2020-06-26 21:59:28 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-10-10 14:18:53 +00:00
|
|
|
maintainers = with maintainers; [ iblech gebner ];
|
2007-07-17 19:29:53 +00:00
|
|
|
};
|
|
|
|
}
|