elinks: use gentoo patch to fix perl 5.38.0 support (#247547)

authored by

Doron Behar and committed by
GitHub
4b6bbec6 4ca81ad6

+10
+10
pkgs/applications/networking/browsers/elinks/default.nix
··· 5 5 enableGuile ? false, guile ? null 6 6 , enablePython ? false, python ? null 7 7 , enablePerl ? (!stdenv.isDarwin) && (stdenv.hostPlatform == stdenv.buildPlatform), perl ? null 8 + , fetchpatch 8 9 # re-add javascript support when upstream supports modern spidermonkey 9 10 }: 10 11 ··· 21 22 rev = "v${version}"; 22 23 sha256 = "sha256-u6QGhfi+uWeIzSUFuYHAH3Xu0Fky0yw2h4NOKgYFLsM="; 23 24 }; 25 + 26 + patches = [ 27 + # Fix build bug with perl 5.38.0. Backport of https://github.com/rkd77/elinks/pull/243 by gentoo: 28 + # https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dfefaa456bd69bc14e3a1c2c6c1b0cc19c6b0869 29 + (fetchpatch { 30 + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/www-client/elinks/files/elinks-0.16.1.1-perl-5.38.patch?id=dfefaa456bd69bc14e3a1c2c6c1b0cc19c6b0869"; 31 + hash = "sha256-bHP9bc/l7VEw7oXlkSUQhhuq8rT2QTahh9SM7ZJgK5w="; 32 + }) 33 + ]; 24 34 25 35 buildInputs = [ 26 36 ncurses libX11 bzip2 zlib brotli zstd xz