<commit_before>{ stdenv, fetchurl, fetchpatch, cmake, mesa, gfortran
, libX11,libXpm, libXft, libXext, zlib }:

stdenv.mkDerivation rec {
  name = "root-${version}";
  version = "5.34.15";

  src = fetchurl {
    url = "ftp://root.cern.ch/root/root_v${version}.source.tar.gz";
    sha256 = "1bkiggcyya39a794d3d2rzzmmkbdymf86hbqhh0l1pl4f38xvp6i";
  };

  buildInputs = [ cmake gfortran mesa libX11 libXpm libXft libXext zlib ];

  # CMAKE_INSTALL_RPATH_USE_LINK_PATH is set to FALSE in
  # <rootsrc>/cmake/modules/RootBuildOptions.cmake.
  # This patch sets it to TRUE.
  patches = [
    ./cmake.patch
    (fetchpatch {
      name = "fix-tm_t-member.diff";
      url = "https://github.com/root-mirror/root/commit/"
        + "08b08412bafc24fa635b0fdb832097a3aa2fa1d2.diff";
      sha256 = "0apbp51pk8471gl06agx3i88dn76p6gpkgf1ssfhcyam0bjl8907";
    })
  ];

  enableParallelBuilding = true;

  meta = {
    homepage = "http://root.cern.ch/drupal/";
    description = "A data analysis framework";
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>root: fix build by -lX11<commit_after>{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, mesa, gfortran
, libX11,libXpm, libXft, libXext, zlib }:

stdenv.mkDerivation rec {
  name = "root-${version}";
  version = "5.34.15";

  src = fetchurl {
    url = "ftp://root.cern.ch/root/root_v${version}.source.tar.gz";
    sha256 = "1bkiggcyya39a794d3d2rzzmmkbdymf86hbqhh0l1pl4f38xvp6i";
  };

  buildInputs = [ cmake pkgconfig gfortran mesa libX11 libXpm libXft libXext zlib ];

  NIX_CFLAGS_LINK = "-lX11";

  # CMAKE_INSTALL_RPATH_USE_LINK_PATH is set to FALSE in
  # <rootsrc>/cmake/modules/RootBuildOptions.cmake.
  # This patch sets it to TRUE.
  patches = [
    ./cmake.patch
    (fetchpatch {
      name = "fix-tm_t-member.diff";
      url = "https://github.com/root-mirror/root/commit/"
        + "08b08412bafc24fa635b0fdb832097a3aa2fa1d2.diff";
      sha256 = "0apbp51pk8471gl06agx3i88dn76p6gpkgf1ssfhcyam0bjl8907";
    })
  ];

  enableParallelBuilding = true;

  meta = {
    homepage = "http://root.cern.ch/drupal/";
    description = "A data analysis framework";
    platforms = stdenv.lib.platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.13051470588235295, 'fraction_numerical': 0.07077205882352941, 'mean_word_length': 3.5448851774530272, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3218315', 'n_tokens_mistral': 986, 'n_tokens_neox': 891, 'n_words': 142}