nixpkgs/pkgs/misc/cups/cups-pk-helper.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
995 B
Nix
Raw Normal View History

2021-01-17 02:30:45 +00:00
{ lib, stdenv, fetchurl, intltool, pkg-config, glib, polkit, cups, fetchpatch }:
stdenv.mkDerivation rec {
2017-03-04 11:36:15 +00:00
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";
2017-03-04 11:36:15 +00:00
sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
};
2021-01-17 02:30:45 +00:00
nativeBuildInputs = [ pkg-config intltool ];
2017-03-04 11:36:15 +00:00
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 lib; {
description = "PolicyKit helper to configure cups with fine-grained privileges";
homepage = "https://www.freedesktop.org/wiki/Software/cups-pk-helper/";
2024-05-26 12:42:05 +00:00
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}