9752593eb0
The biber package is now at 2.14, but TextBibTeX is still required. Few changes were needed for newly introduced scripts-extra path. This broke some of our old tricks which were relying on having writable script directories. The changes to the script locations made buildEnv create symlinks to the script directories instead of directories of symlinks to scripts. The changes to texlinks.sh and texlive/TeXLive perl path were made because of this.
37 lines
1.3 KiB
Nix
37 lines
1.3 KiB
Nix
{ stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
|
|
|
|
let
|
|
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
|
|
in
|
|
|
|
perlPackages.buildPerlModule {
|
|
pname = "biber";
|
|
inherit (biberSource) version;
|
|
|
|
src = "${biberSource}/source/bibtex/biber/biblatex-biber.tar.gz";
|
|
|
|
buildInputs = with perlPackages; [
|
|
autovivification BusinessISBN BusinessISMN BusinessISSN ConfigAutoConf
|
|
DataCompare DataDump DateSimple EncodeEUCJPASCII EncodeHanExtra EncodeJIS2K
|
|
DateTime DateTimeFormatBuilder DateTimeCalendarJulian
|
|
ExtUtilsLibBuilder FileSlurper FileWhich IPCRun3 LogLog4perl LWPProtocolHttps ListAllUtils
|
|
ListMoreUtils MozillaCA ParseRecDescent IOString ReadonlyXS RegexpCommon TextBibTeX
|
|
UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
|
|
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
|
|
TestDifferences
|
|
PerlIOutf8_strict
|
|
];
|
|
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
|
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
shortenPerlShebang $out/bin/biber
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Backend for BibLaTeX";
|
|
license = with licenses; [ artistic1 gpl1Plus ];
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.ttuegel ];
|
|
};
|
|
}
|