<commit_before>{ stdenv, fetchurl, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }:

stdenv.mkDerivation rec {
  name = "libu2f-server-1.1.0";
  src = fetchurl {
    url = "https://developers.yubico.com/libu2f-server/Releases/${name}.tar.xz";
    sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ json_c openssl check file help2man which gengetopt ];
<commit_msg>libu2f-server: support json_c-0.14<commit_after>{ stdenv, fetchurl, fetchpatch, pkgconfig, json_c, openssl, check, file, help2man, which, gengetopt }:

stdenv.mkDerivation rec {
  name = "libu2f-server-1.1.0";
  src = fetchurl {
    url = "https://developers.yubico.com/libu2f-server/Releases/${name}.tar.xz";
    sha256 = "0xx296nmmqa57w0v5p2kasl5zr1ms2gh6qi4lhv6xvzbmjp3rkcd";
  };

  patches = [
    # remove after updating to next release
    (fetchpatch {
      name = "json-c-0.14-support.patch";
      url = "https://github.com/Yubico/libu2f-server/commit/f7c4983b31909299c47bf9b2627c84b6bfe225de.patch";
      sha256 = "10q66w3paii1yhfdmjskpip078fk9p3sjllbqx1yx71qbjki55b0";
    })
  ];

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ json_c openssl check file help2man which gengetopt ];

{'fraction_non_alphanumeric': 0.12559241706161137, 'fraction_numerical': 0.08372827804107424, 'mean_word_length': 4.301255230125523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '6609047', 'n_tokens_mistral': 585, 'n_tokens_neox': 533, 'n_words': 79}