<commit_before>{ stdenv
, fetchTritonPatch
, fetchurl
, gettext
, intltool

, atk
, cairo
, gdk-pixbuf
, glib
, gtk3
, pango
, libxml2
, perl
, gobject-introspection
, vala
}:

let
  inherit (stdenv.lib)
    enFlag;
in

stdenv.mkDerivation rec {
  name = "gtksourceview-${version}";
  versionMajor = "3.20";
  versionMinor = "0";
  version = "${versionMajor}.${versionMinor}";

  src = fetchurl {
    url = "mirror://gnome/sources/gtksourceview/${versionMajor}/${name}.tar.xz";
    sha256 = "0b753cbd49cdfb0fb8bb347e4669dcc233d9c05c1d321429efe93c4e885262fd";
  };

  patches = [
    (fetchTritonPatch {
      rev = "453aedffa95d1c459a15a6f1fb8cb9d0ce810803";
      file = "gtksourceview/nix_share_path.patch";
      sha256 = "522655ce1664afef805040f2068094fdf57e3283a4cc2bdf52b33cb6de9fbe00";
    })
  ];

  nativeBuildInputs = [
    gettext
    intltool
  ];

  buildInputs = [
    atk
    cairo
    gdk-pixbuf
    glib
    gtk3
    pango
    libxml2
    perl
    gobject-introspection
    vala
  ];

  configureFlags = [
    "--disable-maintainer-mode"
    "--enable-compile-warnings"
    "--enable-Werror"
    "--enable-deprecations"
    "--enable-completion-providers"
    "--disable-glade-catalog"<commit_msg>gtksourceview: 3.20.0 -> 3.20.1<commit_after>{ stdenv
, fetchTritonPatch
, fetchurl
, gettext
, intltool

, atk
, cairo
, gdk-pixbuf
, glib
, gtk3
, pango
, libxml2
, perl
, gobject-introspection
, vala
}:

let
  inherit (stdenv.lib)
    enFlag;
in

stdenv.mkDerivation rec {
  name = "gtksourceview-${version}";
  versionMajor = "3.20";
  versionMinor = "1";
  version = "${versionMajor}.${versionMinor}";

  src = fetchurl {
    url = "mirror://gnome/sources/gtksourceview/${versionMajor}/${name}.tar.xz";
    sha256Url = "mirror://gnome/sources/gtksourceview/${versionMajor}/${name}.sha256sum";
    sha256 = "322d95c0eaba768a47956ccf1af732ea9377ab7a8afc145b1a34a04012ae8c4c";
  };

  nativeBuildInputs = [
    gettext
    intltool
  ];

  buildInputs = [
    atk
    cairo
    gdk-pixbuf
    glib
    gtk3
    pango
    libxml2
    perl
    gobject-introspection
    vala
  ];

  patches = [
    (fetchTritonPatch {
      rev = "453aedffa95d1c459a15a6f1fb8cb9d0ce810803";
      file = "gtksourceview/nix_share_path.patch";
      sha256 = "522655ce1664afef805040f2068094fdf57e3283a4cc2bdf52b33cb6de9fbe00";
    })
  ];

  configureFlags = [
    "--disable-maintainer-mode"
    "--enable-compile-warnings"
    "--enable-Werror"
    "--enable-deprecations"
    "--enable-completion-providers"
    "--disable-glade-catalog"
{'fraction_non_alphanumeric': 0.12894321766561515, 'fraction_numerical': 0.09384858044164038, 'mean_word_length': 3.1658456486042694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '4540706', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1035, 'n_words': 135}