<commit_before>{ stdenv, lib, fetchurl
, config
, zlib, bzip2, ncurses, libpng, flex, bison
, freetype, t1lib
, libgd
, icu, ghostscript, ed
, perl, ruby, expat, curl, libjpeg, python, fontconfig, pkgconfig
, poppler, libpaper, graphite2
#, lesstif
, zziplib, harfbuzz, texinfo, potrace, gmp, mpfr
, xpdf, cairo, pixman, xorg
, makeWrapper
}:

# Useful resource covering build options:
# http://tug.org/texlive/doc/tlbuild.html

let
  withSystemLibs = map (libname: "--with-system-${libname}");

  year = "2015";
  version = year; # keep names simple for now

  common = rec {
    src = fetchurl {
      url = "ftp://tug.org/historic/systems/texlive/${year}/texlive-20150521-source.tar.xz";
      sha256 = "ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669";
    };

    configureFlags = [
      "--with-banner-add=/NixOS.org"
      "--disable-missing" "--disable-native-texlive-build"
      "--enable-shared" # "--enable-cxx-runtime-hack" # static runtime
      "--enable-tex-synctex"
      "-C" # use configure cache to speed up
    ]
      ++ withSystemLibs [
      # see "from TL tree" vs. "Using installed"  in configure output
      "zziplib" "xpdf" "poppler" "mpfr" "gmp"<commit_msg>texlive: remove reference to lesstif<commit_after>{ stdenv, lib, fetchurl
, config
, zlib, bzip2, ncurses, libpng, flex, bison
, freetype, t1lib
, libgd
, icu, ghostscript, ed
, perl, ruby, expat, curl, libjpeg, python, fontconfig, pkgconfig
, poppler, libpaper, graphite2
, motif
, zziplib, harfbuzz, texinfo, potrace, gmp, mpfr
, xpdf, cairo, pixman, xorg
, makeWrapper
}:

# Useful resource covering build options:
# http://tug.org/texlive/doc/tlbuild.html

let
  withSystemLibs = map (libname: "--with-system-${libname}");

  year = "2015";
  version = year; # keep names simple for now

  common = rec {
    src = fetchurl {
      url = "ftp://tug.org/historic/systems/texlive/${year}/texlive-20150521-source.tar.xz";
      sha256 = "ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669";
    };

    configureFlags = [
      "--with-banner-add=/NixOS.org"
      "--disable-missing" "--disable-native-texlive-build"
      "--enable-shared" # "--enable-cxx-runtime-hack" # static runtime
      "--enable-tex-synctex"
      "-C" # use configure cache to speed up
    ]
      ++ withSystemLibs [
      # see "from TL tree" vs. "Using installed"  in configure output
      "zziplib" "xpdf" "poppler" "mpfr" "gmp"
{'fraction_non_alphanumeric': 0.14320987654320988, 'fraction_numerical': 0.047736625514403296, 'mean_word_length': 3.396021699819168, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4930968', 'n_tokens_mistral': 987, 'n_tokens_neox': 908, 'n_words': 203}