<commit_before>{ stdenv
, fetchurl
, gperf
, lib
, substituteAll

, freetype
, expat
, libxslt
, xorg
}:

/** Font configuration scheme
 * - ./config-compat.patch makes fontconfig try the following root
 *   configs, in order: $FONTCONFIG_FILE,
 *   /etc/fonts/${configVersion}/fonts.conf, /etc/fonts/fonts.conf.
 *   This is done not to override config of pre-2.11 versions (which
 *   just blows up) and still use *global* font configuration at
 *   both NixOS or non-NixOS.
 * - NixOS creates /etc/fonts/${configVersion}/fonts.conf link to
 *   $out/etc/fonts/fonts.conf, and other modifications should go to
 *   /etc/fonts/${configVersion}/conf.d
 * - See ./make-fonts-conf.xsl for config details.
 */

let
  # bump whenever fontconfig breaks compatibility with older configurations
  configVersion = "2.12";
in
stdenv.mkDerivation rec {
  name = "fontconfig-2.12.5";

  src = fetchurl {
    urls = [
      "https://www.freedesktop.org/software/fontconfig/release/${name}.tar.bz2"
      "http://fontconfig.org/release/${name}.tar.bz2"
    ];
    sha256 = "e10ccf1e26b0968f61d81037af1147fea28e86bfd159ffd8cfd5a486da126ce4";
  };

  nativeBuildInputs = [<commit_msg>fontconfig: 2.12.5 -> 2.12.6<commit_after>{ stdenv
, fetchurl
, gperf
, lib
, substituteAll

, freetype
, expat
, libxslt
, xorg
}:

/** Font configuration scheme
 * - ./config-compat.patch makes fontconfig try the following root
 *   configs, in order: $FONTCONFIG_FILE,
 *   /etc/fonts/${configVersion}/fonts.conf, /etc/fonts/fonts.conf.
 *   This is done not to override config of pre-2.11 versions (which
 *   just blows up) and still use *global* font configuration at
 *   both NixOS or non-NixOS.
 * - NixOS creates /etc/fonts/${configVersion}/fonts.conf link to
 *   $out/etc/fonts/fonts.conf, and other modifications should go to
 *   /etc/fonts/${configVersion}/conf.d
 * - See ./make-fonts-conf.xsl for config details.
 */

let
  # bump whenever fontconfig breaks compatibility with older configurations
  configVersion = "2.12";
in
stdenv.mkDerivation rec {
  name = "fontconfig-2.12.6";

  src = fetchurl {
    urls = [
      "https://www.freedesktop.org/software/fontconfig/release/${name}.tar.bz2"
      "http://fontconfig.org/release/${name}.tar.bz2"
    ];
    sha256 = "cf0c30807d08f6a28ab46c61b8dbd55c97d2f292cf88f3a07d3384687f31f017";
  };

  nativeBuildInputs = [
{'fraction_non_alphanumeric': 0.12877178070548237, 'fraction_numerical': 0.04887377815554611, 'mean_word_length': 3.4499054820415878, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1443124', 'n_tokens_mistral': 904, 'n_tokens_neox': 820, 'n_words': 188}