Blahtexml fixes (#523465)
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
lib,
|
||||
stdenv,
|
||||
libiconv,
|
||||
texliveFull,
|
||||
libxslt,
|
||||
texliveBasic,
|
||||
xercesc,
|
||||
}:
|
||||
|
||||
@@ -21,13 +22,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
postPatch =
|
||||
lib.optionalString stdenv.cc.isClang ''
|
||||
substituteInPlace makefile \
|
||||
--replace "\$(CXX)" "\$(CXX) -std=c++98"
|
||||
--replace-fail "\$(CXX)" "\$(CXX) -std=c++98"
|
||||
''
|
||||
+
|
||||
# fix the doc build on TeX Live 2023
|
||||
''
|
||||
substituteInPlace Documentation/manual.tex \
|
||||
--replace '\usepackage[utf8x]{inputenc}' '\usepackage[utf8]{inputenc}'
|
||||
--replace-fail '\usepackage[utf8x]{inputenc}' '\usepackage[utf8]{inputenc}'
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
@@ -35,7 +36,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"doc"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ texliveFull ]; # scheme-full needed for ucs package
|
||||
nativeBuildInputs = [
|
||||
libxslt
|
||||
(texliveBasic.withPackages (ps: [
|
||||
ps.cm-super
|
||||
ps.ucs
|
||||
]))
|
||||
];
|
||||
buildInputs = [ xercesc ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
|
||||
|
||||
buildFlags = [
|
||||
|
||||
Reference in New Issue
Block a user