Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ git diff pkgs/tools/typesetting/tex/texlive/bin.nix
- diff --git a/pkgs/tools/typesetting/tex/texlive/bin.nix b/pkgs/tools/typesetting/tex/texlive/bin.nix
- index 34a689ee9bd..45c63ebb584 100644
- --- a/pkgs/tools/typesetting/tex/texlive/bin.nix
- +++ b/pkgs/tools/typesetting/tex/texlive/bin.nix
- @@ -176,6 +176,8 @@ core-big = stdenv.mkDerivation { #TODO: upmendex
- (
- if [[ "$path" == "libs/lua52" ]]; then
- extraConfig="--enable-static --disable-shared"
- + elif [[ "$path" == "texk/web2c" ]]; then
- + extraConfig="CXXFLAGS=-std=c++11"
- else
- extraConfig=""
- fi
- @@ -186,6 +188,7 @@ core-big = stdenv.mkDerivation { #TODO: upmendex
- done
- '';
- + patches = [ ./c++11.patch ];
- preBuild = "cd texk/web2c";
- enableParallelBuilding = true;
- $ cat pkgs/tools/typesetting/tex/texlive/c++11.patch
- diff -u -r ../texlive-20160523-source/texk/web2c/luatexdir/image/pdftoepdf.w ./texk/web2c/luatexdir/image/pdftoepdf.w
- --- ../texlive-20160523-source/texk/web2c/luatexdir/image/pdftoepdf.w 2016-03-25 12:44:48.000000000 +0000
- +++ ./texk/web2c/luatexdir/image/pdftoepdf.w 2017-04-21 23:48:03.787934684 +0000
- @@ -71,7 +72,12 @@
- ck = (char *) malloc(PDF_CHECKSUM_SIZE);
- if (ck == NULL)
- formatted_error("pdf inclusion","out of memory while processing '%s'", a);
- - snprintf(ck, PDF_CHECKSUM_SIZE, "%" PRIu64 "_%" PRIu64, (uint64_t) size,(uint64_t) mtime);
- + snprintf(ck, PDF_CHECKSUM_SIZE, "%"
- + PRIu64
- + "_%"
- + PRIu64,
- + (uint64_t) size,
- + (uint64_t) mtime);
- } else {
- switch (fe) {
- case FE_FAIL:
Add Comment
Please, Sign In to add comment