Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 47 lines 1.0 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 intltool, 6 pkg-config, 7 glib, 8 polkit, 9 cups, 10 fetchpatch, 11}: 12 13stdenv.mkDerivation rec { 14 version = "0.2.6"; 15 pname = "cups-pk-helper"; 16 17 src = fetchurl { 18 url = "https://www.freedesktop.org/software/cups-pk-helper/releases/cups-pk-helper-${version}.tar.xz"; 19 sha256 = "0a52jw6rm7lr5nbyksiia0rn7sasyb5cjqcb95z1wxm2yprgi6lm"; 20 }; 21 22 nativeBuildInputs = [ 23 pkg-config 24 intltool 25 ]; 26 buildInputs = [ 27 glib 28 polkit 29 cups 30 ]; 31 32 patches = [ 33 # Don't use etc/dbus-1/system.d 34 (fetchpatch { 35 url = "https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/merge_requests/2.patch"; 36 sha256 = "1kamhr5kn8c1y0q8xbip0fgr7maf3dyddlvab4n0iypk7rwwikl0"; 37 }) 38 ]; 39 40 meta = with lib; { 41 description = "PolicyKit helper to configure cups with fine-grained privileges"; 42 homepage = "https://www.freedesktop.org/wiki/Software/cups-pk-helper/"; 43 license = licenses.gpl2Plus; 44 platforms = platforms.linux; 45 maintainers = [ maintainers.bjornfor ]; 46 }; 47}