1 { lib, stdenv, fetchurl, intltool, pkg-config, glib, polkit, cups, fetchpatch }:
3 stdenv.mkDerivation rec {
5 pname = "cups-pk-helper";
8 url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
9 sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
12 nativeBuildInputs = [ pkg-config intltool ];
13 buildInputs = [ glib polkit cups ];
16 # Don't use etc/dbus-1/system.d
18 url = "https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/merge_requests/2.patch";
19 sha256 = "1kamhr5kn8c1y0q8xbip0fgr7maf3dyddlvab4n0iypk7rwwikl0";
24 description = "PolicyKit helper to configure cups with fine-grained privileges";
25 homepage = "http://www.freedesktop.org/wiki/Software/cups-pk-helper/";
26 license = licenses.gpl2;
27 platforms = platforms.linux;
28 maintainers = [ maintainers.bjornfor ];