<commit_before>{ stdenv, fetchurl, boost, sqlite }:

stdenv.mkDerivation rec {
  name = "vsqlite-${version}";
  version = "0.3.13";

  src = fetchurl {
    url = "http://evilissimo.fedorapeople.org/releases/vsqlite--/0.3.13/vsqlite++-${version}.tar.gz";
    sha256 = "17fkj0d2jh0xkjpcayhs1xvbnh1d69f026i7vs1zqnbiwbkpz237";
  };

  buildInputs = [ boost sqlite ];

  meta = {
    homepage = http://vsqlite.virtuosic-bytes.com/;
    description = "C++ wrapper library for sqlite.";
    license = stdenv.lib.licenses.bsd3;
    platforms = stdenv.lib.platforms.unix;
  };
}<commit_msg>vsqlite: fix darwin build<commit_after>{ stdenv, fetchurl, boost, sqlite }:

stdenv.mkDerivation rec {
  name = "vsqlite-${version}";
  version = "0.3.13";

  src = fetchurl {
    url = "http://evilissimo.fedorapeople.org/releases/vsqlite--/0.3.13/vsqlite++-${version}.tar.gz";
    sha256 = "17fkj0d2jh0xkjpcayhs1xvbnh1d69f026i7vs1zqnbiwbkpz237";
  };

  buildInputs = [ boost sqlite ];

  prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
    substituteInPlace Makefile.in \
        --replace '-Wl,--as-needed' "" \
        --replace '-Wl,-soname -Wl,libvsqlitepp.so.3' \
                  "-Wl,-install_name,$out/lib/libvsqlitepp.3.dylib"
  '';

  meta = with stdenv.lib; {
    homepage = http://vsqlite.virtuosic-bytes.com/;
    description = "C++ wrapper library for sqlite.";
    license = licenses.bsd3;
    platforms = platforms.unix;
  };
}
{'fraction_non_alphanumeric': 0.16097560975609757, 'fraction_numerical': 0.041811846689895474, 'mean_word_length': 3.198830409356725, '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': '6072785', 'n_tokens_mistral': 622, 'n_tokens_neox': 569, 'n_words': 82}