<commit_before>{ stdenv, fetchurl, libuuid, lzo, zlib, acl }:

stdenv.mkDerivation rec {
  name = "mtd-utils-${version}";
  version = "1.5.2";

  src = fetchurl {
    url = ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2;
    sha256 = "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax";
  };

  patchPhase = ''
    sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
  '';

  buildInputs = [ libuuid lzo zlib acl ];

  crossAttrs = {
    makeFlags = "CC=${stdenv.cross.config}-gcc";
  };
<commit_msg>mtdutils: Rely on cc-wrapper to export this env var<commit_after>{ stdenv, fetchurl, libuuid, lzo, zlib, acl }:

stdenv.mkDerivation rec {
  name = "mtd-utils-${version}";
  version = "1.5.2";

  src = fetchurl {
    url = ftp://ftp.infradead.org/pub/mtd-utils/mtd-utils-1.5.2.tar.bz2;
    sha256 = "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax";
  };

  patchPhase = ''
    sed -i -e s,/usr/local,, -e s,/usr,$out, common.mk
  '';

  buildInputs = [ libuuid lzo zlib acl ];

{'fraction_non_alphanumeric': 0.171, 'fraction_numerical': 0.06, 'mean_word_length': 3.2595744680851064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '175', 'n_tokens_mistral': 489, 'n_tokens_neox': 458, 'n_words': 75}