@@ -1,4 +1,4 @@
1−{ stdenv, perlPackages, shortenPerlShebang, texlive }:
1+{ stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
22
33let
44 biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
@@ -10,6 +10,20 @@ perlPackages.buildPerlModule {
1010
1111 src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
1212
13+ patches = stdenv.lib.optionals (stdenv.lib.versionAtLeast perlPackages.perl.version "5.30") [
14+ (fetchpatch {
15+ name = "biber-fix-tests.patch";
16+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
17+ sha256 = "1ninf46bxf4hm0p5arqbxqyv8r98xdwab34vvp467q1v23kfbhya";
18+ })
19+
20+ (fetchpatch {
21+ name = "biber-fix-tests-2.patch";
22+ url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests-2.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
23+ sha256 = "1l8pk454kkm0szxrv9rv9m2a0llw1jm7ffhgpyg4zfiw246n62x0";
24+ })
25+ ];
26+
1327 buildInputs = with perlPackages; [
1428 autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
1529 DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K