forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
31 lines
988 B
Nix
31 lines
988 B
Nix
{ lib, 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 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 ];
|
|
};
|
|
}
|