python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / cups / cups-pk-helper.nix
blobf5edc72934073565eeefaf5db0e8fd4c3778aaf9
1 { lib, stdenv, fetchurl, intltool, pkg-config, glib, polkit, cups, fetchpatch }:
3 stdenv.mkDerivation rec {
4   version = "0.2.6";
5   pname = "cups-pk-helper";
7   src = fetchurl {
8     url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
9     sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
10   };
12   nativeBuildInputs = [ pkg-config intltool ];
13   buildInputs = [ glib polkit cups ];
15   patches = [
16     # Don't use etc/dbus-1/system.d
17     (fetchpatch {
18       url = "https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/merge_requests/2.patch";
19       sha256 = "1kamhr5kn8c1y0q8xbip0fgr7maf3dyddlvab4n0iypk7rwwikl0";
20     })
21   ];
23   meta = with lib; {
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 ];
29   };