<commit_before>{ stdenv
, bison
, fetchFromGitHub
, flex
, which

, perl
}:

let
  rev = "84f773b3ec8b75f377a68fd1436ea3ac6d11b170";
  date = "2018-11-23";
in
stdenv.mkDerivation rec {
  name = "lm_sensors-${date}";
  
  src = fetchFromGitHub {
    version = 6;
    owner = "lm-sensors";
    repo = "lm-sensors";
    inherit rev;
    sha256 = "f656d1597d95fdfc65ffe242a69841e9838ac7569fb5a22f9a7f75ecdd8a3915";
  };

  nativeBuildInputs = [
    bison
    flex
    which
  ];

  buildInputs = [
    perl  # Needed for sensors-detect
  ];

  preBuild = ''
    makeFlagsArray+=("PREFIX=$out")
    buildFlagsArray+=("ETCDIR=/etc")
    installFlagsArray+=("ETCDIR=$out/etc")
  '';

  installParallel = false;

  meta = with stdenv.lib; {
    homepage = http://www.lm-sensors.org/;<commit_msg>lm-sensors: 2018-11-23 -> 2019-07-05<commit_after>{ stdenv
, bison
, fetchFromGitHub
, flex
, which

, perl
}:

let
  rev = "7daa6c5ed50215faa2b08fe1184a7b3f30194bef";
  date = "2019-07-05";
in
stdenv.mkDerivation rec {
  name = "lm_sensors-${date}";
  
  src = fetchFromGitHub {
    version = 6;
    owner = "lm-sensors";
    repo = "lm-sensors";
    inherit rev;
    sha256 = "456d31d28f6fde4b5c78da54ce5faa8fbcf6e426129f70b095877a51966cada8";
  };

  nativeBuildInputs = [
    bison
    flex
    which
  ];

  buildInputs = [
    perl  # Needed for sensors-detect
  ];

  preBuild = ''
    makeFlagsArray+=("PREFIX=$out")
    buildFlagsArray+=("ETCDIR=/etc")
    installFlagsArray+=("ETCDIR=$out/etc")
  '';

  installParallel = false;

  meta = with stdenv.lib; {
    homepage = http://www.lm-sensors.org/;
{'fraction_non_alphanumeric': 0.14026299311208515, 'fraction_numerical': 0.10206637445209768, 'mean_word_length': 3.2275132275132274, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1443125', 'n_tokens_mistral': 761, 'n_tokens_neox': 652, 'n_words': 99}