<commit_before>{ stdenv, fetchurl, lib, file
, pkg-config
, gtkVersion ? "3", gtk2 ? null, gtk3 ? null }:

with lib;

stdenv.mkDerivation rec {
  name = "libindicator-gtk${gtkVersion}-${version}";
  version = "${versionMajor}.${versionMinor}";
  versionMajor = "12.10";
  versionMinor = "1";

  src = fetchurl {
    url = "${meta.homepage}/${versionMajor}/${version}/+download/libindicator-${version}.tar.gz";
    sha256 = "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ (if gtkVersion == "2" then gtk2 else gtk3) ];

  postPatch = ''
    substituteInPlace configure \
      --replace 'LIBINDICATOR_LIBS+="$LIBM"' 'LIBINDICATOR_LIBS+=" $LIBM"'
    for f in {build-aux/ltmain.sh,configure,m4/libtool.m4}; do<commit_msg>libindicator: rename name to pname&version (#160010)<commit_after>{ stdenv, fetchurl, lib, file
, pkg-config
, gtkVersion ? "3", gtk2 ? null, gtk3 ? null }:

with lib;

stdenv.mkDerivation rec {
  pname = "libindicator-gtk${gtkVersion}";
  version = "12.10.1";

  src = fetchurl {
    url = "https://launchpad.net/libindicator/${lib.versions.majorMinor version}/${version}/+download/libindicator-${version}.tar.gz";
    sha256 = "b2d2e44c10313d5c9cd60db455d520f80b36dc39562df079a3f29495e8f9447f";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ (if gtkVersion == "2" then gtk2 else gtk3) ];

  postPatch = ''
    substituteInPlace configure \
      --replace 'LIBINDICATOR_LIBS+="$LIBM"' 'LIBINDICATOR_LIBS+=" $LIBM"'
    for f in {build-aux/ltmain.sh,configure,m4/libtool.m4}; do
{'fraction_non_alphanumeric': 0.15914786967418545, 'fraction_numerical': 0.07644110275689223, 'mean_word_length': 4.450511945392491, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '973865', 'n_tokens_mistral': 696, 'n_tokens_neox': 618, 'n_words': 105}