<commit_before>{ lib, stdenv, fetchurl, libcxx, coreutils, gnused }:

let rev = "199626"; in

stdenv.mkDerivation {
  name = "libc++abi-${rev}";

  src = fetchurl {
    url = "http://tarballs.nixos.org/libcxxabi-${rev}.tar.bz2";
    sha256 = "09wr6qwgmdzbmgfkdzfhph9giy0zd6fp3s017fcfy4g0prjn5s4c";
  };

  patches = [ ./no-stdc++.patch ./darwin.patch ];

  buildInputs = [ coreutils ];

  postUnpack = ''
    unpackFile ${libcxx.src}
  '' + lib.optionalString stdenv.isDarwin ''
    export TRIPLE=x86_64-apple-darwin
    # Hack: NIX_CFLAGS_COMPILE doesn't work here because clang++ isn't
    # wrapped at this point.
    export CXX="clang++ -D_LIBCXX_DYNAMIC_FALLBACK=1"
    unset SDKROOT
  '';

  installPhase = if stdenv.isDarwin
    then ''
      install -d -m 755 $out/include $out/lib
      install -m 644 lib/libc++abi.dylib $out/lib
      install -m 644 include/cxxabi.h $out/include
    ''
    else ''
      install -d -m 755 $out/include $out/lib
      install -m 644 lib/libc++abi.so.1.0 $out/lib
      install -m 644 include/cxxabi.h $out/include
      ln -s libc++abi.so.1.0 $out/lib/libc++abi.so
      ln -s libc++abi.so.1.0 $out/lib/libc++abi.so.1
    '';

  buildPhase = "(cd lib; ./buildit)";

  meta = {
    homepage = http://libcxxabi.llvm.org/;
    description = "A new implementation of low level support for a standard C++ library";
    license = "BSD";
    maintainers = [ stdenv.lib.maintainers.shlevy ];
    platforms = stdenv.lib.platforms.unix;
  };
}<commit_msg>libc++abi: Fix importing includes from libc++.<commit_after>{ lib, stdenv, fetchurl, libcxx, coreutils, gnused }:

let rev = "199626"; in

stdenv.mkDerivation {
  name = "libc++abi-${rev}";

  src = fetchurl {
    url = "http://tarballs.nixos.org/libcxxabi-${rev}.tar.bz2";
    sha256 = "09wr6qwgmdzbmgfkdzfhph9giy0zd6fp3s017fcfy4g0prjn5s4c";
  };

  patches = [ ./no-stdc++.patch ./darwin.patch ];

  buildInputs = [ coreutils ];

  postUnpack = ''
    unpackFile ${libcxx.src}
    cp -r libcxx-*/include libcxxabi*/
  '' + lib.optionalString stdenv.isDarwin ''
    export TRIPLE=x86_64-apple-darwin
    # Hack: NIX_CFLAGS_COMPILE doesn't work here because clang++ isn't
    # wrapped at this point.
    export CXX="clang++ -D_LIBCXX_DYNAMIC_FALLBACK=1"
    unset SDKROOT
  '';

  installPhase = if stdenv.isDarwin
    then ''
      install -d -m 755 $out/include $out/lib
      install -m 644 lib/libc++abi.dylib $out/lib
      install -m 644 include/cxxabi.h $out/include
    ''
    else ''
      install -d -m 755 $out/include $out/lib
      install -m 644 lib/libc++abi.so.1.0 $out/lib
      install -m 644 include/cxxabi.h $out/include
      ln -s libc++abi.so.1.0 $out/lib/libc++abi.so
      ln -s libc++abi.so.1.0 $out/lib/libc++abi.so.1
    '';

  buildPhase = "(cd lib; ./buildit)";

  meta = {
    homepage = http://libcxxabi.llvm.org/;
    description = "A new implementation of low level support for a standard C++ library";
    license = "BSD";
    maintainers = with stdenv.lib.maintainers; [ shlevy vlstill ];
    platforms = stdenv.lib.platforms.unix;
  };
}
{'fraction_non_alphanumeric': 0.1481723237597911, 'fraction_numerical': 0.03524804177545692, 'mean_word_length': 2.8553459119496853, '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': '2267184', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1184, 'n_words': 252}