<commit_before>{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "cde-${version}";
  version = "0.1";

  src = fetchFromGitHub {
    owner = "pgbovine";
    repo = "CDE";
    sha256 = "0raiz7pczkbnzxpg7g59v7gdp1ipkwgms2vh3431snw1va1gjzmk";
    rev = "v${version}";
  };

  # The build is small, so there should be no problem
  # running this locally. There is also a use case for
  # older systems, where modern binaries might not be
  # useful.
  preferLocalBuild = true;

  patchBuild = ''
    sed '/install/d' $src/Makefile > $src/Makefile
  '';
  
  installPhase = ''
    mkdir -p $out/bin
    cp cde $out/bin
    cp cde-exec $out/bin
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/pgbovine/CDE;
    description = "A packaging tool for building portable packages";
    license = licenses.gpl3;
    maintainers = [ maintainers.rlupton20 ];
    platforms = platforms.linux;
  };
}<commit_msg>cde: Disable build on aarch64-linux<commit_after>{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  name = "cde-${version}";
  version = "0.1";

  src = fetchFromGitHub {
    owner = "pgbovine";
    repo = "CDE";
    sha256 = "0raiz7pczkbnzxpg7g59v7gdp1ipkwgms2vh3431snw1va1gjzmk";
    rev = "v${version}";
  };

  # The build is small, so there should be no problem
  # running this locally. There is also a use case for
  # older systems, where modern binaries might not be
  # useful.
  preferLocalBuild = true;

  patchBuild = ''
    sed '/install/d' $src/Makefile > $src/Makefile
  '';
  
  installPhase = ''
    mkdir -p $out/bin
    cp cde $out/bin
    cp cde-exec $out/bin
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/pgbovine/CDE;
    description = "A packaging tool for building portable packages";
    license = licenses.gpl3;
    maintainers = [ maintainers.rlupton20 ];
    platforms = platforms.linux;
    # error: architecture aarch64 is not supported by strace
    badPlatforms = [ "aarch64-linux" ];
  };
}
{'fraction_non_alphanumeric': 0.12040302267002519, 'fraction_numerical': 0.02518891687657431, 'mean_word_length': 3.061349693251534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1206405', 'n_tokens_mistral': 745, 'n_tokens_neox': 716, 'n_words': 182}