<commit_before>{ stdenv, cmake
, version, src, patches ? [ ]
, hostPlatform
, ...
}:

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

  inherit src patches;

  nativeBuildInputs = [ cmake ];

  enableParallelBuilding = true;

  crossAttrs = {
  } // stdenv.lib.optionalAttrs (hostPlatform.libc == "msvcrt") {
    cmakeFlags = [
      "-DMSGPACK_BUILD_EXAMPLES=OFF"
      "-DCMAKE_SYSTEM_NAME=Windows"
    ];
  };

  meta = with stdenv.lib; {<commit_msg>libmsgpack: Remove crossAttrs<commit_after>{ stdenv, cmake
, version, src, patches ? [ ]
, hostPlatform
, ...
}:

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

  inherit src patches;

  nativeBuildInputs = [ cmake ];

  enableParallelBuilding = true;

  cmakeFlags = []
    ++ stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
                           "-DMSGPACK_BUILD_EXAMPLES=OFF"
    ++ stdenv.lib.optional (hostPlatform.libc == "msvcrt")
                           "-DCMAKE_SYSTEM_NAME=Windows"
    ;

  meta = with stdenv.lib; {
{'fraction_non_alphanumeric': 0.13662790697674418, 'fraction_numerical': 0.0, 'mean_word_length': 2.9427480916030535, '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': '3131956', 'n_tokens_mistral': 369, 'n_tokens_neox': 358, 'n_words': 60}