<commit_before>{ lib, stdenv, fetchFromGitHub, autoreconfHook, texinfo }:

stdenv.mkDerivation rec {
  pname = "macchanger";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "alobbs";
    repo = "macchanger";
    rev = version;
    sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r";
  };

  nativeBuildInputs = [ autoreconfHook texinfo ];

  outputs = [ "out" "info" ];

  meta = with lib; {
    description = "A utility for viewing/manipulating the MAC address of network interfaces";
    maintainers = with maintainers; [ joachifm ma27 ];
    license = licenses.gpl2Plus;
    homepage = "https://www.gnu.org/software/macchanger";
    platforms = platforms.linux;
  };
}
<commit_msg>macchanger: apply patches from Debian<commit_after>{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, texinfo }:

stdenv.mkDerivation rec {
  pname = "macchanger";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "alobbs";
    repo = "macchanger";
    rev = version;
    sha256 = "1hypx6sxhd2b1nsxj314hpkhj7q4x9p2kfaaf20rjkkkig0nck9r";
  };

  patches = [
    (fetchpatch {
      url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/02-fix_usage_message.patch";
      sha256 = "0pxljmq0l0znylbhms09i19qwil74gm8gx3xx2ffx00dajaizj18";
    })
    (fetchpatch {
      url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/06-update_OUI_list.patch";
      sha256 = "04kbd784z9nwkjva5ckkvb0yb3pim9valb1viywn1yyh577d0y7w";
    })
    (fetchpatch {
      url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/08-fix_random_MAC_choice.patch";
      sha256 = "1vz3appxxsdf1imzrn57amazfwlbrvx6g78b6n88aqgwzy5dm34d";
    })
    (fetchpatch {
      url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/check-random-device-read-errors.patch";
      sha256 = "0pra6qnk39crjlidspg3l6hpaqiw43cypahx793l59mqn956cngc";
    })
    (fetchpatch {
      url = "https://sources.debian.org/data/main/m/macchanger/1.7.0-5.3/debian/patches/verify-changed-MAC.patch";
      sha256 = "0vjhf2fnj1hlghjl821p6idrfc8hmd4lgps5lf1l68ylqvwjw0zj";
    })
  ];

  nativeBuildInputs = [ autoreconfHook texinfo ];

  outputs = [ "out" "info" ];

  meta = with lib; {
    description = "A utility for viewing/manipulating the MAC address of network interfaces";
    maintainers = with maintainers; [ joachifm ma27 dotlambda ];
    license = licenses.gpl2Plus;
    homepage = "https://github.com/alobbs/macchanger";
    platforms = platforms.linux;
  };
}

{'fraction_non_alphanumeric': 0.13062182244818146, 'fraction_numerical': 0.06687524442706297, 'mean_word_length': 3.6173285198555956, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 1, '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': '3425000', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1030, 'n_words': 138}