diff --git a/pkgs/by-name/bl/blahtexml/package.nix b/pkgs/by-name/bl/blahtexml/package.nix index 5d146930d141..b4992424228d 100644 --- a/pkgs/by-name/bl/blahtexml/package.nix +++ b/pkgs/by-name/bl/blahtexml/package.nix @@ -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 = [