<commit_before>{ stdenv, fetchurl, pkgconfig, gnome, cairo, ghc, mtl }:

let gtksourceview = gnome.gtksourceview_24; in

stdenv.mkDerivation rec {
  pname = "gtk2hs";
  version = "0.10.0";
  fname = "${pname}-${version}";
  name = "haskell-${pname}-ghc${ghc.ghc.version}-${version}";
  
  src = fetchurl {
    url = http://nixos.org/tarballs/gtk2hs-0.10.0-20090419.tar.gz;
    sha256 = "18a7cfph83yvv91ks37nrgqrn21fvww8bhb8nd8xy1mgb8lnfds1";
  };
  
  propagatedBuildInputs = [mtl];

  buildInputs = [
    pkgconfig cairo ghc gnome.glib gnome.gtk gnome.libglade
    gnome.GConf gtksourceview gnome.librsvg
  ];

  preConfigure =
    ''
      sed -i gio/gio.package.conf.in -e 's|@GIO_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GIO_LIBDIR_CQ@|'
      sed -i gtk/gtk.package.conf.in -e 's|@GTK_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GTK_LIBDIR_CQ@|'
    '';

  configureFlags = ["--without-pkgreg"];

  postInstall =
    ''
      local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
      local installedPkgConf=$confDir/${fname}.installedconf
      ensureDir $out/bin # necessary to get it added to PATH
      ensureDir $confDir
      echo $installedPkgConf
      echo '[]' > $installedPkgConf
      for pkgConf in $out/lib/gtk2hs/*.conf; do
        cp $pkgConf $confDir/
        GHC_PACKAGE_PATH=$installedPkgConf ghc-pkg --global register $pkgConf --force
      done
    ''; # */

  passthru = { inherit gtksourceview; };
}
<commit_msg>I had broken a reference - Fixing the nixpkgs tarball<commit_after>{ stdenv, fetchurl, pkgconfig, gnome, cairo, ghc, mtl }:

stdenv.mkDerivation rec {
  pname = "gtk2hs";
  version = "0.10.0";
  fname = "${pname}-${version}";
  name = "haskell-${pname}-ghc${ghc.ghc.version}-${version}";
  
  src = fetchurl {
    url = http://nixos.org/tarballs/gtk2hs-0.10.0-20090419.tar.gz;
    sha256 = "18a7cfph83yvv91ks37nrgqrn21fvww8bhb8nd8xy1mgb8lnfds1";
  };
  
  propagatedBuildInputs = [mtl];

  buildInputs = [
    pkgconfig cairo ghc gnome.glib gnome.gtk gnome.libglade
    gnome.GConf gnome.gtksourceview gnome.librsvg
  ];

  preConfigure =
    ''
      sed -i gio/gio.package.conf.in -e 's|@GIO_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GIO_LIBDIR_CQ@|'
      sed -i gtk/gtk.package.conf.in -e 's|@GTK_LIBDIR_CQ@|"${gnome.glib}/lib", "${gnome.glib}/lib64", @GTK_LIBDIR_CQ@|'
    '';

  configureFlags = ["--without-pkgreg"];

  postInstall =
    ''
      local confDir=$out/lib/ghc-pkgs/ghc-${ghc.ghc.version}
      local installedPkgConf=$confDir/${fname}.installedconf
      ensureDir $out/bin # necessary to get it added to PATH
      ensureDir $confDir
      echo $installedPkgConf
      echo '[]' > $installedPkgConf
      for pkgConf in $out/lib/gtk2hs/*.conf; do
        cp $pkgConf $confDir/
        GHC_PACKAGE_PATH=$installedPkgConf ghc-pkg --global register $pkgConf --force
      done
    ''; # */

  passthru = { inherit (gnome) gtksourceview; };
}

{'fraction_non_alphanumeric': 0.15726902173913043, 'fraction_numerical': 0.029891304347826088, 'mean_word_length': 3.2435158501440924, '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': '5624168', 'n_tokens_mistral': 1284, 'n_tokens_neox': 1181, 'n_words': 195}