<commit_before>{stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:

assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";

let
  pname = "camlimages";
  version = "4.1.2";
in

stdenv.mkDerivation {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.bz2";
    sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
  };
<commit_msg>ocamlPackages.camlimages_4_1: disable for OCaml ≥ 4.06<commit_after>{stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:

assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";

if stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "camlimages-4.1.2 is not available for OCaml ${ocaml.version}"
else

let
  pname = "camlimages";
  version = "4.1.2";
in

stdenv.mkDerivation {
  name = "${pname}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/camlspotter/camlimages/get/${version}.tar.bz2";
    sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
  };

{'fraction_non_alphanumeric': 0.14430379746835442, 'fraction_numerical': 0.04472573839662447, 'mean_word_length': 5.020304568527918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3428036', 'n_tokens_mistral': 533, 'n_tokens_neox': 506, 'n_words': 85}