<commit_before>{ lib, stdenv, fetchFromGitHub, which
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
, glew, zlib, icu, pkg-config, cairo, libvpx }:

stdenv.mkDerivation {
  pname = "anura-engine";
  version = "unstable-2021-05-24";

  src = fetchFromGitHub {
    owner = "anura-engine";
    repo = "anura";
    rev = "ed50bbfa68a4aa09438d95d39103ec39156d438f";
    sha256 = "0bk0qklk9wwx3jr2kbrmansccn1nj962v5n2vlb5hxsrcv96s3dg";
    fetchSubmodules = true;
  };

  postPatch = ''
    substituteInPlace src/sys.cpp \
      --replace mallinfo2 mallinfo
  '';

  nativeBuildInputs = [
    which pkg-config
  ];

  buildInputs = [
    boost
    SDL2
    SDL2_image
    SDL2_mixer
    SDL2_ttf
    glew
    zlib
    icu
    cairo
    libvpx
  ];<commit_msg>frogatto: 2021-05-24 -> 2021-11-23<commit_after>{ lib, stdenv, fetchFromGitHub, which
, boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
, glew, zlib, icu, pkg-config, cairo, libvpx }:

stdenv.mkDerivation {
  pname = "anura-engine";
  version = "unstable-2021-11-23";

  src = fetchFromGitHub {
    owner = "anura-engine";
    repo = "anura";
    rev = "816425df31624066e2815e26a25b1c5d3d355cb4";
    sha256 = "1k7fnfgz003gcbyygv4aakhkkz3w3z9nyz7dlwz01xa6<PASSWORD>";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    which pkg-config
  ];

  buildInputs = [
    boost
    SDL2
    SDL2_image
    SDL2_mixer
    SDL2_ttf
    glew
    zlib
    icu
    cairo
    libvpx
  ];
{'fraction_non_alphanumeric': 0.10724233983286909, 'fraction_numerical': 0.09540389972144847, 'mean_word_length': 3.047887323943662, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '902297', 'n_tokens_mistral': 702, 'n_tokens_neox': 615, 'n_words': 102}