<commit_before>{ stdenv, fetchurl, removeReferencesTo }:

stdenv.mkDerivation rec {
  pname = "pkgconf";
  version = "1.7.0";

  nativeBuildInputs = [ removeReferencesTo ];

  outputs = [ "out" "lib" "dev" "man" "doc" ];

  enableParallelBuilding = true;

  src = fetchurl {
    url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
    sha256 = "0sb1a2lgiqaninv5s3zq09ilrkpsamcl68dyhqyz7yi9vsgb0vhy";
  };

  # Debian has outputs like these too:
  # https://packages.debian.org/source/buster/pkgconf, so take it this
  # reference removing is safe.
  postFixup = ''
    remove-references-to \
      -t "${placeholder "dev"}" \
      "${placeholder "lib"}"/lib/* \
      "${placeholder "out"}"/bin/*
    remove-references-to \
      -t "${placeholder "out"}" \
      "${placeholder "lib"}"/lib/*
  ''
  # Move back share/aclocal. Yes, this normally goes in the dev output for good
  # reason, but in this case the dev output is for the `libpkgconf` library,
  # while the aclocal stuff is for the tool. The tool is already for use during
  # development, so there is no reason to have separate "dev-bin" and "dev-lib"
  # outputs or someting.
  + ''<commit_msg>pkgconf-unwrapped: 1.7.0 -> 1.7.3<commit_after>{ stdenv, fetchurl, removeReferencesTo }:

stdenv.mkDerivation rec {
  pname = "pkgconf";
  version = "1.7.3";

  nativeBuildInputs = [ removeReferencesTo ];

  outputs = [ "out" "lib" "dev" "man" "doc" ];

  enableParallelBuilding = true;

  src = fetchurl {
    url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
    sha256 = "1h7rf5cch0cbxp8nmjkkf272zrz2jgpqpr8a58ww75pn3jjswimq";
  };

  # Debian has outputs like these too:
  # https://packages.debian.org/source/buster/pkgconf, so take it this
  # reference removing is safe.
  postFixup = ''
    remove-references-to \
      -t "${placeholder "dev"}" \
      "${placeholder "lib"}"/lib/* \
      "${placeholder "out"}"/bin/*
    remove-references-to \
      -t "${placeholder "out"}" \
      "${placeholder "lib"}"/lib/*
  ''
  # Move back share/aclocal. Yes, this normally goes in the dev output for good
  # reason, but in this case the dev output is for the `libpkgconf` library,
  # while the aclocal stuff is for the tool. The tool is already for use during
  # development, so there is no reason to have separate "dev-bin" and "dev-lib"
  # outputs or someting.
  + ''
{'fraction_non_alphanumeric': 0.14452798663324978, 'fraction_numerical': 0.018796992481203006, 'mean_word_length': 3.2615658362989324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, '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': '1452841', 'n_tokens_mistral': 854, 'n_tokens_neox': 816, 'n_words': 226}