mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
biber-ms: init
This commit is contained in:
parent
d2cb5e3642
commit
1729f37d2b
55
pkgs/tools/typesetting/biber-ms/default.nix
Normal file
55
pkgs/tools/typesetting/biber-ms/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -6,6 +6,7 @@
|
|||||||
, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
|
||||||
, brotli, cairo, pixman, xorg, clisp, biber, woff2, xxHash
|
, brotli, cairo, pixman, xorg, clisp, biber, woff2, xxHash
|
||||||
, makeWrapper, shortenPerlShebang, useFixedHashes, asymptote
|
, makeWrapper, shortenPerlShebang, useFixedHashes, asymptote
|
||||||
|
, biber-ms
|
||||||
}:
|
}:
|
||||||
|
|
||||||
# Useful resource covering build options:
|
# Useful resource covering build options:
|
||||||
@ -427,6 +428,7 @@ pygmentex = python3Packages.buildPythonApplication rec {
|
|||||||
inherit asymptote;
|
inherit asymptote;
|
||||||
|
|
||||||
inherit biber;
|
inherit biber;
|
||||||
|
inherit biber-ms;
|
||||||
bibtexu = bibtex8;
|
bibtexu = bibtex8;
|
||||||
bibtex8 = stdenv.mkDerivation {
|
bibtex8 = stdenv.mkDerivation {
|
||||||
pname = "texlive-bibtex-x.bin";
|
pname = "texlive-bibtex-x.bin";
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
, makeWrapper
|
, makeWrapper
|
||||||
, python3, ruby, perl, tk, jdk, bash, snobol4
|
, python3, ruby, perl, tk, jdk, bash, snobol4
|
||||||
, coreutils, findutils, gawk, getopt, gnugrep, gnumake, gnused, gzip, ncurses, zip
|
, coreutils, findutils, gawk, getopt, gnugrep, gnumake, gnused, gzip, ncurses, zip
|
||||||
, libfaketime, asymptote, makeFontsConf
|
, libfaketime, asymptote, biber-ms, makeFontsConf
|
||||||
, useFixedHashes ? true
|
, useFixedHashes ? true
|
||||||
, recurseIntoAttrs
|
, recurseIntoAttrs
|
||||||
}:
|
}:
|
||||||
@ -125,7 +125,6 @@ let
|
|||||||
# TODO patch the scripts from bin.* directly in bin.* instead of here
|
# TODO patch the scripts from bin.* directly in bin.* instead of here
|
||||||
|
|
||||||
# TODO we do not build binaries for the following packages (yet!)
|
# TODO we do not build binaries for the following packages (yet!)
|
||||||
biber-ms.binfiles = [];
|
|
||||||
xpdfopen.binfiles = [];
|
xpdfopen.binfiles = [];
|
||||||
|
|
||||||
# mptopdf is a format link, but not generated by texlinks
|
# mptopdf is a format link, but not generated by texlinks
|
||||||
|
@ -6516,6 +6516,8 @@ with pkgs;
|
|||||||
|
|
||||||
biber = callPackage ../tools/typesetting/biber { };
|
biber = callPackage ../tools/typesetting/biber { };
|
||||||
|
|
||||||
|
biber-ms = callPackage ../tools/typesetting/biber-ms { };
|
||||||
|
|
||||||
biblatex-check = callPackage ../tools/typesetting/biblatex-check { };
|
biblatex-check = callPackage ../tools/typesetting/biblatex-check { };
|
||||||
|
|
||||||
binlore = callPackage ../development/tools/analysis/binlore { };
|
binlore = callPackage ../development/tools/analysis/binlore { };
|
||||||
|
Loading…
Reference in New Issue
Block a user