<commit_before>{ fetchurl, stdenv, intltool, libintlOrEmpty, pkgconfig, glib, json_glib, libsoup, geoip
, dbus, dbus_glib, modemmanager, avahi
}:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "geoclue-2.4.3";

  src = fetchurl {
    url = "http://www.freedesktop.org/software/geoclue/releases/2.4/${name}.tar.xz";
    sha256 = "0pk07k65dlw37nz8z5spksivsv5nh96xmbi336rf2yfxf2ldpadd";
  };

  buildInputs = libintlOrEmpty ++
   [ intltool pkgconfig glib json_glib libsoup geoip
     dbus dbus_glib avahi
   ] ++ optionals (!stdenv.isDarwin) [ modemmanager ];

  preConfigure = ''
     substituteInPlace configure --replace "-Werror" ""
  '';
<commit_msg>geoclue-2.0: move pkgconfig from buildInputs to nativeBuildInputs<commit_after>{ fetchurl, stdenv, intltool, libintlOrEmpty, pkgconfig, glib, json_glib, libsoup, geoip
, dbus, dbus_glib, modemmanager, avahi
}:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "geoclue-2.4.3";

  src = fetchurl {
    url = "http://www.freedesktop.org/software/geoclue/releases/2.4/${name}.tar.xz";
    sha256 = "0pk07k65dlw37nz8z5spksivsv5nh96xmbi336rf2yfxf2ldpadd";
  };

  nativeBuildInputs = [
    pkgconfig
  ];

  buildInputs = libintlOrEmpty ++
   [ intltool glib json_glib libsoup geoip
     dbus dbus_glib avahi
   ] ++ optionals (!stdenv.isDarwin) [ modemmanager ];

  preConfigure = ''
     substituteInPlace configure --replace "-Werror" ""
  '';

{'fraction_non_alphanumeric': 0.12446657183499289, 'fraction_numerical': 0.03698435277382646, 'mean_word_length': 4.0978260869565215, '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': '4429552', 'n_tokens_mistral': 613, 'n_tokens_neox': 562, 'n_words': 97}