<commit_before>{ stdenv
, fetchurl
, lib

, cairomm
, glibmm
, libpng
, pango

, channel
}:

let
  sources = {
    "2.40" = {
      version = "2.40.1";
      sha256 = "9762ee2a2d5781be6797448d4dd2383ce14907159b30bc12bf6b08e7227be3af";
    };
  };
  source = sources."${channel}";
in
stdenv.mkDerivation rec {
  name = "pangomm-${source.version}";

  src = fetchurl {
    url = "mirror://gnome/sources/pangomm/${channel}/${name}.tar.xz";
    hashOutput = false;
    inherit (source) sha256;
  };

  buildInputs = [
    cairomm
    glibmm
    libpng
    pango
  ];

  configureFlags = [
    "--disable-maintainer-mode"
    "--disable-deprecated-api"
    "--disable-documentation"
    "--enable-warnings"
    "--without-libstdc-doc"
    "--without-libsigc-doc"
    "--without-glibmm-doc"
    "--without-cairomm-doc"
  ];

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      sha256Url = "https://download.gnome.org/sources/pangomm/${channel}/"
        + "${name}.sha256sum";
      failEarly = true;
    };
  };

  meta = with lib; {
    description = "C++ interface to the Pango text rendering library";
    homepage = http://www.pango.org/;
    license = with licenses; [
      lgpl2
      lgpl21
    ];
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>pangomm: fix cairomm lib name<commit_after>{ stdenv
, fetchurl
, lib

, cairomm
, glibmm
, libpng
, pango

, channel
}:

let
  sources = {
    "2.40" = {
      version = "2.40.1";
      sha256 = "9762ee2a2d5781be6797448d4dd2383ce14907159b30bc12bf6b08e7227be3af";
    };
  };
  source = sources."${channel}";
in
stdenv.mkDerivation rec {
  name = "pangomm-${source.version}";

  src = fetchurl {
    url = "mirror://gnome/sources/pangomm/${channel}/${name}.tar.xz";
    hashOutput = false;
    inherit (source) sha256;
  };

  buildInputs = [
    cairomm
    glibmm
    libpng
    pango
  ];

  # XXX: keep in sync with cairo lib name
  postPatch = ''
    sed -i configure \
      -e 's/cairomm-1.0/cairomm-1.16/g'
  '';

  configureFlags = [
    "--disable-maintainer-mode"
    "--disable-deprecated-api"
    "--disable-documentation"
    "--enable-warnings"
    "--without-libstdc-doc"
    "--without-libsigc-doc"
    "--without-glibmm-doc"
    "--without-cairomm-doc"
  ];

  passthru = {
    srcVerification = fetchurl {
      inherit (src)
        outputHash
        outputHashAlgo
        urls;
      sha256Url = "https://download.gnome.org/sources/pangomm/${channel}/"
        + "${name}.sha256sum";
      failEarly = true;
    };
  };

  meta = with lib; {
    description = "C++ interface to the Pango text rendering library";
    homepage = http://www.pango.org/;
    license = with licenses; [
      lgpl2
      lgpl21
    ];
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.14536256323777402, 'fraction_numerical': 0.04755480607082631, 'mean_word_length': 2.299221357063404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6869799', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1106, 'n_words': 190}