2019-09-16 06:24:50 +03:00
|
|
|
{ stdenv, fetchurl, intltool, pkgconfig, glib, polkit, cups, fetchpatch }:
|
2016-01-01 18:01:57 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-04 14:36:15 +03:00
|
|
|
version = "0.2.6";
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "cups-pk-helper";
|
2016-01-01 18:01:57 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 21:43:35 +03:00
|
|
|
url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz";
|
2017-03-04 14:36:15 +03:00
|
|
|
sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm";
|
2016-01-01 18:01:57 +03:00
|
|
|
};
|
|
|
|
|
2017-03-04 14:36:15 +03:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool ];
|
|
|
|
buildInputs = [ glib polkit cups ];
|
2016-01-01 18:01:57 +03:00
|
|
|
|
2019-09-16 06:24:50 +03:00
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-01-01 18:01:57 +03:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|