<commit_before>{ stdenv
, fetchTritonPatch
, fetchurl
, intltool
, makeWrapper

, gconf
, gtk2
, libgksu
}:

stdenv.mkDerivation rec {
  name = "gksu-2.0.2";

  src = fetchurl {
    url = "http://people.debian.org/~kov/gksu/${name}.tar.gz";
    sha256 = "0npfanlh28daapkg25q4fncxd89rjhvid5fwzjaw324x0g53vpm1";
  };

  nativeBuildInputs = [
    intltool
    makeWrapper
  ];

  buildInputs = [
    gconf
    gtk2
    libgksu
  ];

  patches = [
    # https://savannah.nongnu.org/bugs/index.php?36127
    (fetchTritonPatch {
      rev = "fea1481e3a5255acae6df3f2bcba5fdcc0b433a0";
      file = "gksu/gksu-2.0.2-glib-2.31.patch";
      sha256 = "028fc1396265d51e90c209c4b3959e2f645f51c3104987ef08339821271d995c";
    })
  ];

  postPatch = ''
    sed -i gksu.desktop \
      -e 's|/usr/bin/x-terminal-emulator|-l gnome-terminal|g'
  '' + ''
    sed -i configure.ac \
      -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:'
  '';

  configureFlags = [
    "--disable-maintainer-mode"
    "--enable-nls"
    "--enable-schemas-install"
    "--disable-gtk-doc"
    "--disable-nautilus-extension"
  ];

  meta = with stdenv.lib; {
    description = "A graphical frontend for libgksu";
    homepage = "http://www.nongnu.org/gksu/";
    license = licenses.gpl2;
    maintainers = with maintainers; [ ];
    platforms = with platforms;
      x86_64-linux;
  };
}
<commit_msg>gksu: fix formatting<commit_after>{ stdenv
, fetchTritonPatch
, fetchurl
, intltool
, makeWrapper

, gconf
, gtk2
, libgksu
}:

stdenv.mkDerivation rec {
  name = "gksu-2.0.2";

  src = fetchurl {
    url = "https://people.debian.org/~kov/gksu/${name}.tar.gz";
    sha256 = "0npfanlh28daapkg25q4fncxd89rjhvid5fwzjaw324x0g53vpm1";
  };

  nativeBuildInputs = [
    intltool
    makeWrapper
  ];

  buildInputs = [
    gconf
    gtk2
    libgksu
  ];

  patches = [
    # https://savannah.nongnu.org/bugs/index.php?36127
    (fetchTritonPatch {
      rev = "fea1481e3a5255acae6df3f2bcba5fdcc0b433a0";
      file = "gksu/gksu-2.0.2-glib-2.31.patch";
      sha256 = "028fc1396265d51e90c209c4b3959e2f645f51c3104987ef08339821271d995c";
    })
  ];

  postPatch = ''
    sed -i gksu.desktop \
      -e 's|/usr/bin/x-terminal-emulator|-l gnome-terminal|g'
  '' + /* Use correct autoconf macro */ ''
    sed -i configure.ac \
      -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:'
  '';

  configureFlags = [
    "--disable-maintainer-mode"
    "--enable-nls"
    "--enable-schemas-install"
    "--disable-gtk-doc"
    "--disable-nautilus-extension"
  ];

  meta = with stdenv.lib; {
    description = "A graphical frontend for libgksu";
    homepage = "http://www.nongnu.org/gksu/";
    license = licenses.gpl2;
    maintainers = with maintainers; [
      codyopel
    ];
    platforms = with platforms;
      x86_64-linux;
  };
}

{'fraction_non_alphanumeric': 0.14383561643835616, 'fraction_numerical': 0.07930785868781542, 'mean_word_length': 2.7298387096774195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, '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': '4529248', 'n_tokens_mistral': 1297, 'n_tokens_neox': 1155, 'n_words': 153}