<commit_before>{stdenv, fetchurl, libgcrypt}:

stdenv.mkDerivation {
  name = "libotr-3.2.0";
  src = fetchurl {
    url = http://www.cypherpunks.ca/otr/libotr-3.2.0.tar.gz;
    sha256 = "14v6idnqpp2vhgir9bzp1ay2gmhqsb8iavrkwmallakfwch9sfyq";
  };

  propagatedBuildInputs = [libgcrypt];
}<commit_msg>libotr: 4.0 back to default. Git problems.<commit_after>{stdenv, fetchurl, libgcrypt}:

stdenv.mkDerivation rec {
  name = "libotr-4.0.0";
  src = fetchurl {
    urls = [
      "http://www.cypherpunks.ca/otr/${name}.tar.gz"
      # The site is down at the time of updating to 4.0.0, so I add this url
      http://ftp.de.debian.org/debian/pool/main/libo/libotr/libotr_4.0.0.orig.tar.gz
    ];
    sha256 = "3f911994409898e74527730745ef35ed75c352c695a1822a677a34b2cf0293b4";
  };

  # Crashes without it, still not accepted upstream.
  # Discussed in https://github.com/cryptodotis/irssi-otr/issues/21
  patches = [ ./0001-Fix-pass-opdata-when-sending-message-fragment.patch ];

  NIX_LDFLAGS = "-lssp";

  propagatedBuildInputs = [ libgcrypt ];

  meta = {
    homepage = "http://www.cypherpunks.ca/otr/";
    license = "LGPLv2.1";
    description = "Library for Off-The-Record Messaging";
  };
}
{'fraction_non_alphanumeric': 0.14619883040935672, 'fraction_numerical': 0.07435254803675856, 'mean_word_length': 3.4044117647058822, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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': '3739560', 'n_tokens_mistral': 555, 'n_tokens_neox': 497, 'n_words': 76}