<commit_before>{ fetchurl, stdenv, ncurses }:
stdenv.mkDerivation rec {
  name = "mg-20110905";

  src = fetchurl {
    url = http://homepage.boetes.org/software/mg/mg-20110905.tar.gz;
    sha256 = "0ac2c7wy5kkcflm7cmiqm5xhb5c4yfw3i33iln8civ1yd9z7vlqw";
  };

  dontAddPrefix = true;

  patches = [ ./configure.patch ];
  patchFlags = "-p0";

  installPhase = ''
    mkdir -p $out/bin
    cp mg $out/bin
    mkdir -p $out/share/man/man1
    cp mg.1 $out/share/man/man1
  '';

  buildInputs = [ ncurses ];

  meta = {
    homepage = http://homepage.boetes.org/software/mg/;
    description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
    license = stdenv.lib.licenses.publicDomain;
    platforms = stdenv.lib.platforms.all;
  };
}<commit_msg>mg: fix darwin build<commit_after>{ fetchurl, stdenv, ncurses }:
stdenv.mkDerivation rec {
  name = "mg-20110905";

  src = fetchurl {
    url = http://homepage.boetes.org/software/mg/mg-20110905.tar.gz;
    sha256 = "0ac2c7wy5kkcflm7cmiqm5xhb5c4yfw3i33iln8civ1yd9z7vlqw";
  };

  dontAddPrefix = true;

  patches = [ ./configure.patch ];
  patchFlags = "-p0";

  NIX_CFLAGS_COMPILE = "-Wno-error";
  buildFlags = [ "CC=cc" ];

  installPhase = ''
    mkdir -p $out/bin
    cp mg $out/bin
    mkdir -p $out/share/man/man1
    cp mg.1 $out/share/man/man1
  '';

  buildInputs = [ ncurses ];

  meta = {
    homepage = http://homepage.boetes.org/software/mg/;
    description = "Micro GNU/emacs, a portable version of the mg maintained by the OpenBSD team";
    license = stdenv.lib.licenses.publicDomain;
    platforms = stdenv.lib.platforms.all;
  };
}
{'fraction_non_alphanumeric': 0.13856529736358061, 'fraction_numerical': 0.04659717964438995, 'mean_word_length': 3.0698254364089776, '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': '3617407', 'n_tokens_mistral': 694, 'n_tokens_neox': 646, 'n_words': 119}