nixpkgs/pkgs/tools/typesetting/biber/default.nix

51 lines
1.8 KiB
Nix
Raw Normal View History

{ 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);
# 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
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
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
ListMoreUtils MozillaCA ParseRecDescent IOString ReadonlyXS RegexpCommon TextBibTeX
UnicodeCollate_1_29 UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
2017-12-16 13:44:06 +00:00
TestDifferences
PerlIOutf8_strict
];
2021-01-15 09:19:50 +00:00
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
2021-01-15 09:19:50 +00:00
postInstall = lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/biber
'';
2014-02-25 16:37:32 +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
};
}