<commit_before>{ stdenv, fetchFromGitHub, cmake }:

let version = "0.7.2"; in
stdenv.mkDerivation {
  pname = "libdynd";
  inherit version;

  src = fetchFromGitHub {
    owner = "libdynd";
    repo = "libdynd";
    rev = "v${version}";
    sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
  };

  cmakeFlags = [
    "-DDYND_BUILD_BENCHMARKS=OFF"
  ];

  # added to fix build with gcc7
  NIX_CFLAGS_COMPILE = [
    "-Wno-error=implicit-fallthrough"
    "-Wno-error=nonnull"
    "-Wno-error=tautological-compare"
    "-Wno-error=class-memaccess"
    "-Wno-error=parentheses"
  ];

  buildInputs = [ cmake ];
<commit_msg>libdynd: fix build with gcc9<commit_after>{ stdenv, fetchFromGitHub, cmake }:

let version = "0.7.2"; in
stdenv.mkDerivation {
  pname = "libdynd";
  inherit version;

  src = fetchFromGitHub {
    owner = "libdynd";
    repo = "libdynd";
    rev = "v${version}";
    sha256 = "0fkd5rawqni1cq51fmr76iw7ll4fmbahfwv4rglnsabbkylf73pr";
  };

  cmakeFlags = [
    "-DDYND_BUILD_BENCHMARKS=OFF"
  ];

  # added to fix build with gcc7+
  NIX_CFLAGS_COMPILE = [
    "-Wno-error=implicit-fallthrough"
    "-Wno-error=nonnull"
    "-Wno-error=tautological-compare"
    "-Wno-error=class-memaccess"
    "-Wno-error=parentheses"
    "-Wno-error=deprecated-copy"
  ];

  buildInputs = [ cmake ];

{'fraction_non_alphanumeric': 0.14101592115238817, 'fraction_numerical': 0.029567854435178165, 'mean_word_length': 3.4444444444444446, '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': '6952015', 'n_tokens_mistral': 577, 'n_tokens_neox': 554, 'n_words': 83}