<commit_before>{ stdenv, fetchurl, builderDefs, libX11, zlib, xproto, mesa ? null, freeglut ? null }:

	let localDefs = builderDefs.passthru.function {
		src = /* put a fetchurl here */
		fetchurl {
			url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz;
			sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck";
		};

		buildInputs = [ libX11 zlib xproto ]
                  ++ stdenv.lib.optional (mesa != null) mesa
                  ++ stdenv.lib.optional (freeglut != null) freeglut;
		preConfigure = builderDefs.stringsWithDeps.fullDepEntry (''
		  sed -e 's/math[.]h/cmath/' -i vector.cxx
		  sed -e 's/games/bin/' -i Makefile.in
		  sed -e '1i\#include <stdlib.h>' -i construo_main.cxx -i command_line.cxx -i config.hxx
		  sed -e '1i\#include <string.h>' -i command_line.cxx -i lisp_reader.cxx -i unix_system.cxx \
		      -i world.cxx construo_main.cxx
		'') ["doUnpack" "minInit"];
	};
	in with localDefs;
stdenv.mkDerivation rec {
	name = "construo-0.2.2";
	builder = writeScript (name + "-builder")
		(textClosure localDefs ["preConfigure" "doConfigure" "doMakeInstall" "doForceShare" "doPropagate"]);
	meta = {
		description = "Masses and springs simulation game";
	};
}<commit_msg>construo: remove use of `builderDefsPackage`<commit_after>{ stdenv, fetchurl, libX11, zlib, xproto, mesa ? null, freeglut ? null }:

stdenv.mkDerivation rec {
  name = "construo-0.2.2";

  src = fetchurl {
    url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz;
    sha256 = "0c661rjasax4ykw77dgqj39jhb4qi48m0bhhdy42vd5a4rfdrcck";
  };

  buildInputs = [ libX11 zlib xproto ]
    ++ stdenv.lib.optional (mesa != null) mesa
    ++ stdenv.lib.optional (freeglut != null) freeglut;

  preConfigure = ''
    sed -e 's/math[.]h/cmath/' -i vector.cxx
    sed -e 's/games/bin/' -i Makefile.in
    sed -e '1i\#include <stdlib.h>' -i construo_main.cxx -i command_line.cxx -i config.hxx
    sed -e '1i\#include <string.h>' -i command_line.cxx -i lisp_reader.cxx -i unix_system.cxx \
      -i world.cxx construo_main.cxx
  '';

  meta = {
    description = "Masses and springs simulation game";
  };
}
{'fraction_non_alphanumeric': 0.14539504441327722, 'fraction_numerical': 0.029920523609163162, 'mean_word_length': 3.246031746031746, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6178183', 'n_tokens_mistral': 940, 'n_tokens_neox': 856, 'n_words': 175}