2021-01-09 23:45:38 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
|
2019-03-04 22:07:49 +00:00
|
|
|
|
|
|
|
let
|
2021-01-15 09:19:50 +00:00
|
|
|
biberSource = lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
|
2021-01-09 23:45:38 +00:00
|
|
|
|
|
|
|
# perl 5.32.0 ships with U:C 1.27
|
|
|
|
UnicodeCollate_1_29 = perlPackages.buildPerlPackage rec {
|
|
|
|
pname = "Unicode-Collate";
|
|
|
|
version = "1.29";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://cpan/authors/id/S/SA/SADAHIRO/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0dr4k10fgbsczh4sz7w8d0nnba38r6jrg87cm3gw4xxgn55fzj7l";
|
|
|
|
};
|
|
|
|
meta = {
|
|
|
|
description = "Unicode Collation Algorithm";
|
|
|
|
license = perlPackages.perl.meta.license;
|
|
|
|
};
|
|
|
|
};
|
2019-03-04 22:07:49 +00:00
|
|
|
in
|
2014-02-25 16:37:32 +00:00
|
|
|
|
2019-06-20 13:07:56 +00:00
|
|
|
perlPackages.buildPerlModule {
|
|
|
|
pname = "biber";
|
2019-03-04 22:07:49 +00:00
|
|
|
inherit (biberSource) version;
|
2018-08-05 19:45:51 +00:00
|
|
|
|
2019-03-04 22:07:49 +00:00
|
|
|
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
|
2014-02-25 16:37:32 +00:00
|
|
|
|
2018-08-05 19:45:51 +00:00
|
|
|
buildInputs = with perlPackages; [
|
2014-02-25 16:37:32 +00:00
|
|
|
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
|
|
|
|
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
|
2017-12-15 18:02:00 +00:00
|
|
|
DateTime DateTimeFormatBuilder DateTimeCalendarJulian
|
2018-08-09 11:06:45 +00:00
|
|
|
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
|
2020-03-09 23:13:25 +00:00
|
|
|
ListMoreUtils MozillaCA ParseRecDescent IOString ReadonlyXS RegexpCommon TextBibTeX
|
2021-01-09 23:45:38 +00:00
|
|
|
UnicodeCollate_1_29 UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
|
2018-12-14 15:40:36 +00:00
|
|
|
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
|
2017-12-16 13:44:06 +00:00
|
|
|
TestDifferences
|
2019-05-03 17:45:10 +00:00
|
|
|
PerlIOutf8_strict
|
2019-03-04 12:04:02 +00:00
|
|
|
];
|
2021-01-15 09:19:50 +00:00
|
|
|
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
|
2019-08-18 04:37:01 +00:00
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
2019-08-18 04:37:01 +00:00
|
|
|
shortenPerlShebang $out/bin/biber
|
|
|
|
'';
|
2014-02-25 16:37:32 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-02-25 16:37:32 +00:00
|
|
|
description = "Backend for BibLaTeX";
|
2018-08-05 19:45:51 +00:00
|
|
|
license = with licenses; [ artistic1 gpl1Plus ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2014-02-25 16:37:32 +00:00
|
|
|
};
|
|
|
|
}
|