<commit_before>{ stdenv, fetchurl, openssl, libuuid }:

stdenv.mkDerivation rec {
  pname = "mosquitto";
  version = "1.4";

  name = "${pname}-${version}";

  src = fetchurl {
    url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz;
    sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
  };

  buildInputs = [ openssl libuuid ];

  makeFlags = [
    "DESTDIR=$(out)"
    "PREFIX="
  ];

  preBuild = ''
    substituteInPlace config.mk \
      --replace "/usr/local" ""
  '';

  meta = {
    homepage = http://mosquitto.org/;
    description = "An open source MQTT v3.1/3.1.1 broker";
    platforms = stdenv.lib.platforms.unix;
    # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
    license = stdenv.lib.licenses.epl10;
  };
}<commit_msg>mosquitto: use cmake for darwin<commit_after>{ stdenv, fetchurl, openssl, libuuid, cmake }:

stdenv.mkDerivation rec {
  pname = "mosquitto";
  version = "1.4";

  name = "${pname}-${version}";

  src = fetchurl {
    url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz;
    sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
  };

  buildInputs = [ openssl libuuid ]
    ++ stdenv.lib.optional stdenv.isDarwin cmake;

  makeFlags = [
    "DESTDIR=$(out)"
    "PREFIX="
  ];

  preBuild = ''
    substituteInPlace config.mk \
      --replace "/usr/local" ""
  '';

  meta = {
    homepage = http://mosquitto.org/;
    description = "An open source MQTT v3.1/3.1.1 broker";
    platforms = stdenv.lib.platforms.unix;
    # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
    license = stdenv.lib.licenses.epl10;
  };
}
{'fraction_non_alphanumeric': 0.1597812879708384, 'fraction_numerical': 0.04374240583232078, 'mean_word_length': 3.0466830466830466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '117294', 'n_tokens_mistral': 703, 'n_tokens_neox': 665, 'n_words': 104}