<commit_before>{ lib
, stdenv
, fetchurl
, SDL
, curl
, openssl
}:

stdenv.mkDerivation rec {
  pname = "tinyemu";
  version = "2019-12-21";

  src = fetchurl {
    url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz";
    hash = "sha256-voNR8hIYGbMXL87c5csYJvoSyH2ht+2Y8mnT6AKgVVU=";
  };

  buildInputs = [
    SDL
    curl
    openssl
  ];

  makeFlags = [ "DESTDIR=$(out)" "bindir=/bin" ];

  preInstall = ''
    mkdir -p "$out/bin"
  '';

  meta = with lib; {<commit_msg>tinyemu: set CC and STRIP in makeFlags<commit_after>{ lib
, stdenv
, fetchurl
, SDL
, curl
, openssl
}:

stdenv.mkDerivation rec {
  pname = "tinyemu";
  version = "2019-12-21";

  src = fetchurl {
    url = "https://bellard.org/tinyemu/${pname}-${version}.tar.gz";
    hash = "sha256-voNR8hIYGbMXL87c5csYJvoSyH2ht+2Y8mnT6AKgVVU=";
  };

  buildInputs = [
    SDL
    curl
    openssl
  ];

  makeFlags = [
    "CC:=$(CC)"
    "STRIP:=$(STRIP)"
    "DESTDIR=$(out)"
    "bindir=/bin"
  ];

  preInstall = ''
    mkdir -p "$out/bin"
  '';

  meta = with lib; {
{'fraction_non_alphanumeric': 0.17703349282296652, 'fraction_numerical': 0.03636363636363636, 'mean_word_length': 2.859778597785978, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6431738', 'n_tokens_mistral': 481, 'n_tokens_neox': 446, 'n_words': 74}