<commit_before>{ stdenv
, fetchurl
, lib
}:

let
  version = "0.11.0";
in
stdenv.mkDerivation rec {
  name = "check-${version}";

  src = fetchurl {
    url = "https://github.com/libcheck/check/releases/download/${version}/"
      + "${name}.tar.gz";
    sha256 = "24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616";
  };

  meta = with lib; {
    description = "Unit testing framework for C";
    homepage = https://libcheck.github.io/check/;
    license = licenses.lgpl2Plus;<commit_msg>check: 0.11.0 -> 0.12.0<commit_after>{ stdenv
, fetchurl
, lib

, subunit_lib
}:

let
  inherit (lib)
    optionalString;

  version = "0.12.0";
in
stdenv.mkDerivation rec {
  name = "check-${version}";

  src = fetchurl {
    url = "https://github.com/libcheck/check/releases/download/${version}/"
      + "${name}.tar.gz";
    sha256 = "464201098bee00e90f5c4bdfa94a5d3ead8d641f9025b560a27755a83b824234";
  };

  buildInputs = [
    subunit_lib
  ];

  configureFlags = [
    "--enable-subunit"
  ];

  postPatch = optionalString doCheck ''
    for file in tests/*.sh tests/test_output_strings checkmk/test/check_checkmk; do
      patchShebangs "$file"
    done
  '';

  # TODO: Fix tests freezing
  doCheck = false;

  meta = with lib; {
    description = "Unit testing framework for C";
    homepage = https://libcheck.github.io/check/;
    license = licenses.lgpl2Plus;
{'fraction_non_alphanumeric': 0.14233841684822077, 'fraction_numerical': 0.074800290486565, 'mean_word_length': 3.253086419753086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4492134', 'n_tokens_mistral': 577, 'n_tokens_neox': 516, 'n_words': 92}