<commit_before>{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "slstatus-${version}";
  version = "unstable-2018-03-28";

  src = fetchgit {
    url = https://git.suckless.org/slstatus;
    rev = "faa52bdcc0221de2d8fae950e409a8ac5e05bfcd";
    sha256 = "0i8k7gjvx51y0mwxjlqhyk2dpvkb2d3y8x4l6ckdnyiy5632pn76";
  };

  configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
  preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libX11 ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = {
    homepage = https://tools.suckless.org/slstatus/;
    description = "status monitor for window managers that use WM_NAME like dwm";
    license = licenses.isc;
    maintainers = with maintainers; [ geistesk ];
    platforms = platforms.linux;
  };
}
<commit_msg>slstatus: unstable-2018-03-21 -> unstable-2018-04-16<commit_after>{ stdenv, fetchgit, pkgconfig, writeText, libX11, conf ? null }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "slstatus-${version}";
  version = "unstable-2018-04-16";

  src = fetchgit {
    url = https://git.suckless.org/slstatus;
    rev = "97ef7c2a1d67bb2c9c379e657fbc8e35acd6aafb";
    sha256 = "1777hgl10imk0l2sgnqgbkfchv1mpxrd82ninzwp7f1rgwchz36v";
  };

  configFile = optionalString (conf!=null) (writeText "config.def.h" conf);
  preBuild = optionalString (conf!=null) "cp ${configFile} config.def.h";

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libX11 ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = {
    homepage = https://tools.suckless.org/slstatus/;
    description = "status monitor for window managers that use WM_NAME like dwm";
    license = licenses.isc;
    maintainers = with maintainers; [ geistesk ];
    platforms = platforms.linux;
  };
}

{'fraction_non_alphanumeric': 0.136, 'fraction_numerical': 0.06186666666666667, 'mean_word_length': 4.029490616621984, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '2262781', 'n_tokens_mistral': 765, 'n_tokens_neox': 696, 'n_words': 130}