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

51 lines
1.9 KiB
Nix
Raw Normal View History

2019-09-02 07:54:20 +00:00
{ stdenv, fetchpatch, perlPackages, shortenPerlShebang, texlive }:
2019-03-04 22:07:49 +00:00
let
biberSource = stdenv.lib.head (builtins.filter (p: p.tlType == "source") texlive.biber.pkgs);
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
2019-09-02 07:54:20 +00:00
patches = stdenv.lib.optionals (stdenv.lib.versionAtLeast perlPackages.perl.version "5.30") [
(fetchpatch {
name = "biber-fix-tests.patch";
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
sha256 = "1ninf46bxf4hm0p5arqbxqyv8r98xdwab34vvp467q1v23kfbhya";
})
(fetchpatch {
name = "biber-fix-tests-2.patch";
url = "https://git.archlinux.org/svntogit/community.git/plain/trunk/biber-fix-tests-2.patch?h=5d0fffd493550e28b2fb81ad114d62a7c9403812";
sha256 = "1l8pk454kkm0szxrv9rv9m2a0llw1jm7ffhgpyg4zfiw246n62x0";
})
];
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
2017-12-15 18:02:00 +00:00
ListMoreUtils MozillaCA ReadonlyXS RegexpCommon TextBibTeX
UnicodeLineBreak URI XMLLibXMLSimple XMLLibXSLT XMLWriter
ClassAccessor TextCSV TextCSV_XS TextRoman DataUniqid LinguaTranslit SortKey
2017-12-16 13:44:06 +00:00
TestDifferences
PerlIOutf8_strict
];
nativeBuildInputs = stdenv.lib.optional stdenv.isDarwin shortenPerlShebang;
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
shortenPerlShebang $out/bin/biber
'';
2014-02-25 16:37:32 +00:00
2018-08-05 19:45:51 +00:00
meta = with stdenv.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
};
}