<commit_before>{ stdenv, fetchFromGitHub, curl, libxml2 }:

stdenv.mkDerivation {
  name = "libs3-2017-06-01";

  src = fetchFromGitHub {
    owner = "bji";
    repo = "libs3";
    rev = "fd8b149044e429ad30dc4c918f0713cdd40aadd2";
    sha256 = "0a4c9rsd3wildssvnvph6cd11adn0p3rd4l02z03lvxkjhm20gw3";
  };

  buildInputs = [ curl libxml2 ];

  # added to fix build with gcc7, review on update
  NIX_CFLAGS_COMPILE = [ "-Wno-error=format-truncation" ];

  DESTDIR = "\${out}";

  meta = with stdenv.lib; {
    homepage = https://github.com/bji/libs3;
    description = "A library for interfacing with amazon s3";
    license = licenses.lgpl3;
    platforms = platforms.linux;<commit_msg>libs3: 2017-06-01 -> 2018-12-03<commit_after>{ stdenv, fetchFromGitHub, curl, libxml2 }:

stdenv.mkDerivation {
  name = "libs3-2018-12-03";

  src = fetchFromGitHub {
    owner = "bji";
    repo = "libs3";
    rev = "111dc30029f64bbf82031f3e160f253a0a63c119";
    sha256 = "1ahf08hc7ql3fazfmlyj9vrhq7cvarsmgn2v8149y63zr1fl61hs";
  };

  buildInputs = [ curl libxml2 ];

  makeFlags = [ "DESTDIR=$(out)" ];

  meta = with stdenv.lib; {
    homepage = https://github.com/bji/libs3;
    description = "A library for interfacing with amazon s3";
    license = licenses.lgpl3Plus;
    platforms = platforms.linux;
{'fraction_non_alphanumeric': 0.1275115919629057, 'fraction_numerical': 0.10741885625965997, 'mean_word_length': 3.709090909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '3424101', 'n_tokens_mistral': 608, 'n_tokens_neox': 521, 'n_words': 92}