Change:
<del> { stdenv, fetchurl, fetchpatch, ncurses, xlibsWrapper, bzip2, zlib, brotli, openssl, autoconf, automake, gettext, pkgconfig, libev , gpm </del> <ins> { stdenv, fetchFromGitHub, fetchpatch, ncurses, xlibsWrapper, bzip2, zlib , brotli, zstd, lzma, openssl, autoreconfHook, gettext, pkgconfig, libev , gpm, libidn, tre, expat </ins> , # Incompatible licenses, LGPLv3 - GPLv2 enableGuile        ? false,                                         guile ? null , enablePython       ? false,                                         python ? null , enablePerl         ? (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null <del> , enableSpidermonkey ? (stdenv.hostPlatform == stdenv.buildPlatform), spidermonkey_38 ? null </del> <ins> # re-add javascript support when upstream supports modern spidermonkey </ins> }: assert enableGuile -> guile != null; assert enablePython -> python != null; stdenv.mkDerivation rec { <del> pname = "elinks-0.13.2"; version = "0.13.2"; src = fetchurl { url = "https://deb.debian.org/debian/pool/main/e/elinks/elinks_${version}.orig.tar.gz"; sha256 = "0xkpqnqy0x8sizx4snca0pw3q98gkhnw5a05yf144j1x1y2nb14c"; </del> <ins> pname = "elinks"; version = "0.13.5"; src = fetchFromGitHub { owner = "rkd77"; repo = "felinks"; rev = "v${version}"; sha256 = "067l9m47j40039q8mvvnxd1amwrac3x6vv0c0svimfpvj4ammgkg"; </ins> }; <del> patches = map fetchurl (import ./debian-patches.nix); postPatch = (stdenv.lib.optional stdenv.isDarwin) '' patch -p0 < ${fetchpatch { url = "https://raw.githubusercontent.com/macports/macports-ports/72bed7749e76b9092ddd8d9fe2d8449c5afb1d71/www/elinks/files/patch-perl.diff"; sha256 = "14q9hk3kg2n2r5b062hvrladp7b4yzysvhq07903w9kpg4zdbyqh"; }} ''; buildInputs = [ ncurses xlibsWrapper bzip2 zlib brotli openssl libev ] </del> <ins> buildInputs = [ ncurses xlibsWrapper bzip2 zlib brotli zstd lzma openssl libidn tre expat libev ] </ins> ++ stdenv.lib.optional stdenv.isLinux gpm ++ stdenv.lib.optional enableGuile guile ++ stdenv.lib.optional enablePython python ++ stdenv.lib.optional enablePerl perl <del> ++ stdenv.lib.optional enableSpidermonkey spidermonkey_38 </del> ; <del> nativeBuildInputs = [ autoconf automake gettext pkgconfig ]; </del> <ins> nativeBuildInputs = [ autoreconfHook gettext pkgconfig ]; </ins> configureFlags = [ "--enable-finger"

Discussion:
Describe the bug elinks, although built with spidermonkey / JavaScript support enabled, fails to detect spidermonkey during its configure phase. This is not fatal to the configure phase, so the build continues without issue, resulting in elinks without javascript support To Reproduce Steps to reproduce the behavior: This shows during build that Spidermonkey is enable via : But later ... shows no JavaScript support; same from within elinks Expected behavior elinks should have JavaScript support enabled Metadata Output of (please note that nixpkgs below is not relevant; 19.09 release used): system: host os: multi-user?: sandbox: version: channels(musteresel): channels(root): nixpkgs: Maintainer information:
is not the cause of this; building with nixpkgs set to the parent commit yields the same result. This seems to be broken since a long time ...
of that elinks version searches for libraries , or . The libraries of spidermonkey are named , or for later versions (38, 52, 60 are on my system). Patching to use the correct lib and using Spidermonkey 1.8.5 again ... ... fails then during built; with errors like ... ... and lots of warnings. Other Spidermonkey versions (38, 52, 60) seem to have a different API; there the configure checks fail to compile their test programs.
Thank you for your contributions. This has been automatically marked as stale because it has had no activity for 180 days. If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity. Here are suggestions that might help resolve this more quickly: for maintainers and people that previously touched the related code and @ mention them in a comment. on the . 3. Ask on the on .