<commit_before>{ stdenv, fetchurl, kernel, perl, fetchgit }:

assert kernel.features ? aufsBase;

let version = "20100522"; in

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

  src = fetchgit {
    url = "http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git";
    rev = "d950eef373ff1e0448ad3945b734da6ab050571d";
    sha256 = "816145b0341bd7862df50c058144cf6ebc25c05d2976f781ff0fe10d4559b853";
  };

  buildInputs = [ perl ];

  makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";

  installPhase =
    ''
      ensureDir $out/lib/modules/${kernel.version}/misc
      cp aufs.ko $out/lib/modules/${kernel.version}/misc

      # Install the headers because aufs2-util requires them.
      cp -prvd include $out/
    '';

  meta = {
    description = "Another Unionfs implementation for Linux (second generation)";
    homepage = http://aufs.sourceforge.net/;
    maintainers = [ stdenv.lib.maintainers.eelco ];
    platforms = stdenv.lib.platforms.linux;
  };
}<commit_msg>Now AUFS2 has proper source for 2.6.35 and 2.6.32<commit_after>{ stdenv, fetchurl, kernel, perl, fetchgit }:

assert kernel.features ? aufsBase;

let version = "20100522"; in

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

  src = 
  if (builtins.lessThan (builtins.compareVersions kernel.version "2.6.35") 0) then
    fetchurl {
      url = "http://nixos.org/tarballs/aufs2-standalone-git-${version}.tar.bz2";
      sha256 = "1g4mw4qx2xzpygdwjiw36bkhfz1hi7wxx7w79n2h0lr5grzzdnd6";
    }
  else
    fetchgit {
      url = "http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-standalone.git";
      rev = "d950eef373ff1e0448ad3945b734da6ab050571d";
      sha256 = "816145b0341bd7862df50c058144cf6ebc25c05d2976f781ff0fe10d4559b853";
    };

  buildInputs = [ perl ];

  makeFlags = "KDIR=${kernel}/lib/modules/${kernel.version}/build";

  installPhase =
    ''
      ensureDir $out/lib/modules/${kernel.version}/misc
      cp aufs.ko $out/lib/modules/${kernel.version}/misc

      # Install the headers because aufs2-util requires them.
      cp -prvd include $out/
    '';

  meta = {
    description = "Another Unionfs implementation for Linux (second generation)";
    homepage = http://aufs.sourceforge.net/;
    maintainers = [ stdenv.lib.maintainers.eelco
                    stdenv.lib.maintainers.raskin ];
    platforms = stdenv.lib.platforms.linux;
  };
}
{'fraction_non_alphanumeric': 0.13412563667232597, 'fraction_numerical': 0.08573853989813243, 'mean_word_length': 3.348708487084871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '660015', 'n_tokens_mistral': 1002, 'n_tokens_neox': 882, 'n_words': 142}