<commit_before><commit_msg>add new cairo<commit_after>{ postscriptSupport ? true
, pdfSupport ? true
, pngSupport ? true
, stdenv, fetchurl, pkgconfig, x11, fontconfig, freetype
, zlib, libpng
}:

assert postscriptSupport -> zlib != null;
assert pngSupport -> libpng != null;

stdenv.mkDerivation {
  name = "cairo-1.2.0";
  src = fetchurl {
    url = http://cairographics.org/releases/cairo-1.2.0.tar.gz;
    sha1 = "c5da7f89cdd3782102357f99a47f516d11661e92";
  };
  buildInputs = [
    pkgconfig x11 fontconfig freetype
    (if pngSupport then libpng else null)
  ];
  propagatedBuildInputs = [
    (if postscriptSupport then zlib else null)
  ];
  configureFlags =
    (if pdfSupport then ["--enable-pdf"] else []);
}
{'fraction_non_alphanumeric': 0.12222222222222222, 'fraction_numerical': 0.05416666666666667, 'mean_word_length': 3.9047619047619047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6195159', 'n_tokens_mistral': 283, 'n_tokens_neox': 262, 'n_words': 58}