<commit_before>{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups }:

stdenv.mkDerivation rec {
  version = "0.2.6";
  pname = "cups-pk-helper";

  src = fetchurl {
    url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
    sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
  };

  nativeBuildInputs = [ pkgconfig intltool ];
  buildInputs = [ glib polkit cups ];

  meta = with stdenv.lib; {
    description = "PolicyKit helper to configure cups with fine-grained privileges";
    homepage = http://www.freedesktop.org/wiki/Software/cups-pk-helper/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.bjornfor ];
  };
}<commit_msg>cups-pk-helper: Move D-Bus conf file to share/dbus-1/system.d<commit_after>{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups, fetchpatch }:

stdenv.mkDerivation rec {
  version = "0.2.6";
  pname = "cups-pk-helper";

  src = fetchurl {
    url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
    sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
  };

  nativeBuildInputs = [ pkgconfig intltool ];
  buildInputs = [ glib polkit cups ];

  patches = [
    # Don't use etc/dbus-1/system.d
    (fetchpatch {
      url = "https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/merge_requests/2.patch";
      sha256 = "1kamhr5kn8c1y0q8xbip0fgr7maf3dyddlvab4n0iypk7rwwikl0";
    })
  ];

  meta = with stdenv.lib; {
    description = "PolicyKit helper to configure cups with fine-grained privileges";
    homepage = http://www.freedesktop.org/wiki/Software/cups-pk-helper/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.bjornfor ];
  };
}
{'fraction_non_alphanumeric': 0.13623827909542197, 'fraction_numerical': 0.03364589078874793, 'mean_word_length': 3.6752577319587627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 4, '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': '6180913', 'n_tokens_mistral': 742, 'n_tokens_neox': 700, 'n_words': 110}