aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix38
1 files changed, 17 insertions, 21 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix b/infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix
index c0d797dbeaa8..030ac1b43aae 100644
--- a/infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix
+++ b/infra/libkookie/nixpkgs/pkgs/tools/typesetting/tex/texlive/bin.nix
@@ -2,9 +2,9 @@
, texlive
, zlib, libiconv, libpng, libX11
, freetype, gd, libXaw, icu, ghostscript, libXpm, libXmu, libXext
-, perl, perlPackages, python2Packages, pkgconfig, autoreconfHook
+, perl, perlPackages, python2Packages, pkgconfig
, poppler, libpaper, graphite2, zziplib, harfbuzz, potrace, gmp, mpfr
-, cairo, pixman, xorg, clisp, biber, xxHash
+, brotli, cairo, pixman, xorg, clisp, biber, woff2, xxHash
, makeWrapper, shortenPerlShebang
}:
@@ -34,10 +34,6 @@ let
cp -pv texk/web2c/pdftexdir/pdftosrc{-poppler0.83.0,}.cc
'';
- # remove when removing synctex-missing-header.patch
- preAutoreconf = "pushd texk/web2c";
- postAutoreconf = "popd";
-
configureFlags = [
"--with-banner-add=/NixOS.org"
"--disable-missing" "--disable-native-texlive-build"
@@ -71,11 +67,11 @@ core = stdenv.mkDerivation rec {
pname = "texlive-bin";
inherit version;
- inherit (common) src prePatch preAutoreconf postAutoreconf;
+ inherit (common) src prePatch;
outputs = [ "out" "doc" ];
- nativeBuildInputs = [ pkgconfig autoreconfHook ];
+ nativeBuildInputs = [ pkgconfig ];
buildInputs = [
/*teckit*/ zziplib poppler mpfr gmp
pixman gd freetype libpng libpaper zlib
@@ -161,7 +157,7 @@ core-big = stdenv.mkDerivation { #TODO: upmendex
pname = "texlive-core-big.bin";
inherit version;
- inherit (common) src prePatch preAutoreconf postAutoreconf;
+ inherit (common) src prePatch;
hardeningDisable = [ "format" ];
@@ -249,20 +245,20 @@ chktex = stdenv.mkDerivation {
};
-dvisvgm = stdenv.mkDerivation {
+dvisvgm = stdenv.mkDerivation rec {
pname = "texlive-dvisvgm.bin";
- inherit version;
-
- inherit (common) src;
+ version = "2.11";
+ # TODO: dvisvgm was switched to build from upstream sources
+ # to address https://github.com/NixOS/nixpkgs/issues/104847
+ # We might want to consider reverting that change in the future.
+
+ src = fetchurl {
+ url = "https://github.com/mgieseki/dvisvgm/releases/download/${version}/dvisvgm-${version}.tar.gz";
+ sha256 = "12b6h0h8rc487yjh3sq9zsdabm9cs2vqcrb0znnfi8277f87zf3j";
+ };
nativeBuildInputs = [ pkgconfig ];
- # TODO: dvisvgm still uses vendored dependencies
- buildInputs = [ core/*kpathsea*/ ghostscript zlib freetype /*potrace xxHash*/ ];
-
- preConfigure = "cd texk/dvisvgm";
-
- configureFlags = common.configureFlags
- ++ [ "--with-system-kpathsea" ];
+ buildInputs = [ core/*kpathsea*/ brotli ghostscript zlib freetype woff2 potrace xxHash ];
enableParallelBuilding = true;
};
@@ -429,7 +425,7 @@ xdvi = stdenv.mkDerivation {
} # un-indented
-// stdenv.lib.optionalAttrs (!stdenv.isDarwin) # see #20062
+// stdenv.lib.optionalAttrs (!clisp.meta.broken) # broken on aarch64 and darwin (#20062)
{
xindy = stdenv.mkDerivation {