biber-ms: init

This commit is contained in:
Vincenzo Mantova 2023-08-14 13:14:11 +01:00
parent d2cb5e3642
commit 1729f37d2b
4 changed files with 60 additions and 2 deletions

View File

@ -0,0 +1,55 @@
{ lib, stdenv, fetchFromGitHub, fetchurl, perlPackages, shortenPerlShebang, texlive }:
let
biberSource = lib.head (builtins.filter (p: p.tlType == "source") texlive.biber-ms.pkgs);
# missing test file
multiscriptBltxml = (fetchFromGitHub {
owner = "plk";
repo = "biber";
rev = "e8d056433063add7800f24589de76f89c4b64c20";
hash = "sha256-QnN6Iyw6iOjfTX7DLVptsfAO/QNn9vOIk5IZlI15EvQ=";
}) + "/t/tdata/multiscript.bltxml";
in
perlPackages.buildPerlModule {
pname = "biber-ms";
inherit (biberSource) version;
src = "${biberSource}/source/bibtex/biber-ms/biblatex-biber-ms.tar.gz";
# from META.json
# (aliases in /* */ are replaced by the actual dependencies to prevent
# evaluation errors with config.allowAliases = false)
buildInputs = with perlPackages; [
# build deps
ConfigAutoConf ExtUtilsLibBuilder FileWhich TestDifferences
/*TestMore=TestSimple=null*/
# runtime deps
BusinessISBN BusinessISMN BusinessISSN ClassAccessor DataCompare DataDump
DataUniqid DateTimeCalendarJulian DateTimeFormatBuilder EncodeEUCJPASCII
EncodeHanExtra EncodeJIS2K EncodeLocale FileSlurper IOString IPCRun3
LWPProtocolHttps LWP/*LWPUserAgent*/ libwwwperl LinguaTranslit ListAllUtils
ListMoreUtils ListMoreUtilsXS LogLog4perl MozillaCA ParseRecDescent
PerlIOutf8_strict RegexpCommon SortKey TextBalanced TextBibTeX TextCSV
TextCSV_XS TextRoman URI UnicodeLineBreak XMLLibXML XMLLibXMLSimple
XMLLibXSLT XMLWriter autovivification
];
nativeBuildInputs = lib.optional stdenv.isDarwin shortenPerlShebang;
preConfigure = ''
cp '${multiscriptBltxml}' t/tdata/multiscript.bltxml
'';
postInstall = ''
mv "$out"/bin/biber{,-ms}
'' + lib.optionalString stdenv.isDarwin ''
shortenPerlShebang "$out"/bin/biber-ms
'';
meta = with lib; {
description = "Backend for BibLaTeX (multiscript version)";
license = biberSource.meta.license;
platforms = platforms.unix;
maintainers = [ maintainers.xworld21 ];
};
}

View File

@ -6,6 +6,7 @@
, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
, brotli, cairo, pixman, xorg, clisp, biber, woff2, xxHash
, makeWrapper, shortenPerlShebang, useFixedHashes, asymptote
, biber-ms
}:
# Useful resource covering build options:
@ -427,6 +428,7 @@ pygmentex = python3Packages.buildPythonApplication rec {
inherit asymptote;
inherit biber;
inherit biber-ms;
bibtexu = bibtex8;
bibtex8 = stdenv.mkDerivation {
pname = "texlive-bibtex-x.bin";

View File

@ -7,7 +7,7 @@
, makeWrapper
, python3, ruby, perl, tk, jdk, bash, snobol4
, coreutils, findutils, gawk, getopt, gnugrep, gnumake, gnused, gzip, ncurses, zip
, libfaketime, asymptote, makeFontsConf
, libfaketime, asymptote, biber-ms, makeFontsConf
, useFixedHashes ? true
, recurseIntoAttrs
}:
@ -125,7 +125,6 @@ let
# TODO patch the scripts from bin.* directly in bin.* instead of here
# TODO we do not build binaries for the following packages (yet!)
biber-ms.binfiles = [];
xpdfopen.binfiles = [];
# mptopdf is a format link, but not generated by texlinks

View File

@ -6516,6 +6516,8 @@ with pkgs;
biber = callPackage ../tools/typesetting/biber { };
biber-ms = callPackage ../tools/typesetting/biber-ms { };
biblatex-check = callPackage ../tools/typesetting/biblatex-check { };
binlore = callPackage ../development/tools/analysis/binlore { };