<commit_before>{ stdenv
, fetchurl

, hidapi
, json-c
, openssl
}:

stdenv.mkDerivation rec {
  name = "libu2f-host-1.1.5";

  src = fetchurl {
    url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
    multihash = "QmPLR6juLTQLQGEvNThbyGyzkTv8PSapxLY2gdYTuCjHgL";
    hashOutput = false;
    sha256 = "f32b71435edf6e412f2971edef411f3b4edb419a5356553ad57811ece4a63a95";
  };

  buildInputs = [
    hidapi
    json-c
    openssl
  ];
  
  # We don't want the old udev rules by default
  postPatch = ''
    grep -q 'udevrulesfile=70-old-u2f.rules' configure
    sed -i 's,udevrulesfile=70-old-u2f.rules,udevrulesfile=70-u2f.rules,g' configure
  '';

  preConfigure = ''
    configureFlagsArray+=("--with-udevrulesdir=$out/lib/udev/rules.d")
  '';

  configureFlags = [
    "--sysconfdir=/etc"
    "--localstatedir=/var"
    "--with-openssl"
  ];

  passthru = {
    srcVerification = fetchurl {
      failEarly = true;
      pgpsigUrls = map (n: "${n}.sig") src.urls;
      pgpKeyFingerprint = "0A3B 0262 BCA1 7053 07D5  <KEY>";
      inherit (src) urls outputHash outputHashAlgo;
    };<commit_msg>libu2f-host: 1.1.5 -> 1.1.6<commit_after>{ stdenv
, fetchurl

, hidapi
, json-c
, openssl
}:

stdenv.mkDerivation rec {
  name = "libu2f-host-1.1.6";

  src = fetchurl {
    url = "https://developers.yubico.com/libu2f-host/Releases/${name}.tar.xz";
    multihash = "QmRdCxnrCMhcxepKbTTCHhwyvhNYJNUka6wNAFqVGpY7Y5";
    hashOutput = false;
    sha256 = "4da0bb9e32cab230e63bf65252076f9a4b5e40eb9ec2ddaf9376bcef30e7bda7";
  };

  buildInputs = [
    hidapi
    json-c
    openssl
  ];
  
  # We don't want the old udev rules by default
  postPatch = ''
    grep -q 'udevrulesfile=70-old-u2f.rules' configure
    sed -i 's,udevrulesfile=70-old-u2f.rules,udevrulesfile=70-u2f.rules,g' configure
  '';

  preConfigure = ''
    configureFlagsArray+=("--with-udevrulesdir=$out/lib/udev/rules.d")
  '';

  configureFlags = [
    "--sysconfdir=/etc"
    "--localstatedir=/var"
    "--with-openssl"
  ];

  passthru = {
    srcVerification = fetchurl {
      failEarly = true;
      pgpsigUrls = map (n: "${n}.sig") src.urls;
      pgpKeyFingerprint = "0A3B 0262 BCA1 7053 07D5  <KEY>";
      inherit (src) urls outputHash outputHashAlgo;
    };
{'fraction_non_alphanumeric': 0.1427304964539007, 'fraction_numerical': 0.06560283687943262, 'mean_word_length': 3.1036363636363635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '1353936', 'n_tokens_mistral': 1041, 'n_tokens_neox': 958, 'n_words': 142}