<commit_before>{ stdenv, lib, fetchFromGitHub, writeShellScript
, gtest, meson, ninja, pkgconfig
, alsaLib, fluidsynth, libGL, libGLU, libogg, libpng, munt, opusfile, SDL2, SDL2_net
}:

let
  dosbox_run = writeShellScript "dosbox" ''
    $(dirname "$0")/dosbox-staging "$@"
  '';

in stdenv.mkDerivation rec {
  pname = "dosbox-staging";
  version = "0.77.1";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    sha256 = "07jwmmm1bhfxavlhl854cj8l5iy5hqx5hpwkkjbcwqg7yh9jfs2x";
  };

  nativeBuildInputs = [ gtest meson ninja pkgconfig ];
  buildInputs = [ alsaLib fluidsynth libGL libGLU libogg libpng munt opusfile SDL2 SDL2_net ];

  enableParallelBuilding = true;
  hardeningDisable = [ "format" ];<commit_msg>dosbox-staging: rename pkgconfig to pkg-config<commit_after>{ stdenv, lib, fetchFromGitHub, writeShellScript
, gtest, meson, ninja, pkg-config
, alsaLib, fluidsynth, libGL, libGLU, libogg, libpng, munt, opusfile, SDL2, SDL2_net
}:

let
  dosbox_run = writeShellScript "dosbox" ''
    $(dirname "$0")/dosbox-staging "$@"
  '';

in stdenv.mkDerivation rec {
  pname = "dosbox-staging";
  version = "0.77.1";

  src = fetchFromGitHub {
    owner = pname;
    repo = pname;
    rev = "v${version}";
    sha256 = "07jwmmm1bhfxavlhl854cj8l5iy5hqx5hpwkkjbcwqg7yh9jfs2x";
  };

  nativeBuildInputs = [ gtest meson ninja pkg-config ];
  buildInputs = [ alsaLib fluidsynth libGL libGLU libogg libpng munt opusfile SDL2 SDL2_net ];

  enableParallelBuilding = true;
  hardeningDisable = [ "format" ];
{'fraction_non_alphanumeric': 0.12119248217757615, 'fraction_numerical': 0.03240440699935191, 'mean_word_length': 4.379790940766551, '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': '4115432', 'n_tokens_mistral': 657, 'n_tokens_neox': 606, 'n_words': 128}