<commit_before>{ stdenv, callPackage, lib, fetchFromGitHub, wineUnstable, libtxc_dxtn_Name }:

with callPackage ./util.nix {};

let v = (import ./versions.nix).staging;
    inherit (v) version;
    patch = fetchFromGitHub {
      inherit (v) sha256;
      owner = "wine-compholio";
      repo = "wine-staging";
      rev = "v${version}";
    };
    build-inputs = pkgNames: extra:
      (mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
in assert (builtins.parseDrvName wineUnstable.name).version == version;

stdenv.lib.overrideDerivation wineUnstable (self: {
  nativeBuildInputs = build-inputs [ "libpulseaudio" libtxc_dxtn_Name ] self.nativeBuildInputs; 
  buildInputs = build-inputs [ "perl" "utillinux" "autoconf" ] self.buildInputs;

  name = "${self.name}-staging";

  postPatch = self.postPatch or "" + ''
    patchShebangs tools
    cp -r ${patch}/patches .
    chmod +w patches
    cd patches
    patchShebangs gitapply.sh
    ./patchinstall.sh DESTDIR="$TMP/$sourceRoot" --all
    cd ..
  '';
})<commit_msg>wineStaging: remove explicit dependency on libpulseaudio<commit_after>{ stdenv, callPackage, lib, fetchFromGitHub, wineUnstable, libtxc_dxtn_Name }:

with callPackage ./util.nix {};

let v = (import ./versions.nix).staging;
    inherit (v) version;
    patch = fetchFromGitHub {
      inherit (v) sha256;
      owner = "wine-compholio";
      repo = "wine-staging";
      rev = "v${version}";
    };
    build-inputs = pkgNames: extra:
      (mkBuildInputs wineUnstable.pkgArches pkgNames) ++ extra;
in assert (builtins.parseDrvName wineUnstable.name).version == version;

stdenv.lib.overrideDerivation wineUnstable (self: {
  nativeBuildInputs = build-inputs [ libtxc_dxtn_Name ] self.nativeBuildInputs; 
  buildInputs = build-inputs [ "perl" "utillinux" "autoconf" ] self.buildInputs;

  name = "${self.name}-staging";

  postPatch = self.postPatch or "" + ''
    patchShebangs tools
    cp -r ${patch}/patches .
    chmod +w patches
    cd patches
    patchShebangs gitapply.sh
    ./patchinstall.sh DESTDIR="$TMP/$sourceRoot" --all
    cd ..
  '';
})
{'fraction_non_alphanumeric': 0.1311869293608842, 'fraction_numerical': 0.0028832292167227293, 'mean_word_length': 3.5359477124183005, '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': '3814533', 'n_tokens_mistral': 725, 'n_tokens_neox': 703, 'n_words': 154}