From patchwork Wed Feb 10 13:06:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: raid5atemyhomework X-Patchwork-Id: 26985 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 98A2227BC26; Wed, 10 Feb 2021 13:07:18 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id F2F6927BC25 for ; Wed, 10 Feb 2021 13:07:17 +0000 (GMT) Received: from localhost ([::1]:57924 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l9pDB-00079C-1f for patchwork@mira.cbaines.net; Wed, 10 Feb 2021 08:07:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51402) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCx-00078o-E2 for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44162) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l9pCw-0001ho-DM for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l9pCw-0007qz-7W for guix-patches@gnu.org; Wed, 10 Feb 2021 08:07:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46421] [PATCH] doc: Expand sane-service-type documentation. Resent-From: raid5atemyhomework Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 Feb 2021 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46421 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46421@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.161296239930161 (code B ref -1); Wed, 10 Feb 2021 13:07:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Feb 2021 13:06:39 +0000 Received: from localhost ([127.0.0.1]:55708 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9pCZ-0007qO-Cr for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:06:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:59328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l9pCV-0007qF-OH for submit@debbugs.gnu.org; Wed, 10 Feb 2021 08:06:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51306) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCV-000729-JW for guix-patches@gnu.org; Wed, 10 Feb 2021 08:06:35 -0500 Received: from mail-40141.protonmail.ch ([185.70.40.141]:20119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l9pCP-0001US-5Y for guix-patches@gnu.org; Wed, 10 Feb 2021 08:06:35 -0500 Date: Wed, 10 Feb 2021 13:06:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612962386; bh=jWZAXBTooHMeva6hHNYmrPMrwTcXl71/NWlOgNQV084=; h=Date:To:From:Reply-To:Subject:From; b=VWIh/G4Sos1X9h03/5iPkhRJw3Jt8s2+/jzPgoEETUhsk2Cj6yQFkk5UQ+wDnrKd0 Fw4Xx7TXs2A6BfvzrJ9/KH0MI1kAvk5CN/T1yaIcI7hi8knZpjiYC75ekMLUm9+pzQ yQKZFDYVFu1l+RdxJ57n0M72Wbe17kCl6Co0cCL4= Message-ID: <0gD73ixFsOhUAMwFx1BNSaMobM8_HaW-6phCSsevky7RFNuTBUNFHeJ4GWM18_9iSpnAMVvROV6ryF9W2v_SllH414yzizr42i6-7GYlEvY=@protonmail.com> MIME-Version: 1.0 Received-SPF: pass client-ip=185.70.40.141; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40141.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: raid5atemyhomework X-ACL-Warn: , raid5atemyhomework via Guix-patches X-Patchwork-Original-From: raid5atemyhomework via Guix-patches via From: raid5atemyhomework X-getmail-retrieved-from-mailbox: Patches SANE documentation in `info guix` is lacking, this patch gives decent documentation about it. PLEASE merge soon, it's not like this is code. From e0728dbab926e4670ec067865053331a02d5d171 Mon Sep 17 00:00:00 2001 From: raid5atemyhomework Date: Wed, 10 Feb 2021 21:01:23 +0800 Subject: [PATCH] doc: Expand sane-service-type documentation. * doc/guix.texi (sane-service-type): Move from between documentation about geoclue, expand slightly. (sane-backends-minimal): New description. (sane-backends): New description, new example. --- doc/guix.texi | 47 ++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-) -- 2.30.0 diff --git a/doc/guix.texi b/doc/guix.texi index 7d18703283..7b9145aa06 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19178,6 +19178,46 @@ tool. See @uref{https://www.freedesktop.org/software/colord/, the colord web site} for more information. @end deffn +@cindex scanner access +@defvr {Scheme Variable} sane-service-type +This service provides access to scanners @i{via} +@uref{http://www.sane-project.org, SANE} by installing the necessary udev +rules. This service is already included in @code{%desktop-services} with +@code{sane-backends-minimal} configured. +@end defvr + +@defvr {Scheme Variable} sane-backends-minimal +The default package which the @code{sane-service-type} will install, this will +support many recent scanners out-of-the-box. +@end defvr + +@defvr {Scheme Variable} sane-backends +A package which includes support for all scanners that @code{sane-backends-minimal} +supports, plus older Hewlett-Packard scanners supported by @code{hplip}. In order +to use this on a system which uses @code{%desktop-services}, you can use +@code{modify-services} to change the @code{sane-service-type} configuration: + +@lisp +(use-modules (gnu)) +(use-service-modules + ; @dots{} + desktop) +(use-package-modules + ; @dots{} + scanner) + +(operating-system + ;; @dots{} + (services + (append + ;; @dots{} + (modify-services %desktop-services + (sane-service-type _ => sane-backends)))) + ;; @dots{} + ) +@end lisp +@end defvr + @deffn {Scheme Procedure} geoclue-application name [#:allowed? #t] [#:system? #f] [#:users '()] Return a configuration allowing an application to access GeoClue location data. @var{name} is the Desktop ID of the application, without @@ -19189,13 +19229,6 @@ this application is allowed location info access. An empty users list means that all users are allowed. @end deffn -@cindex scanner access -@deffn {Scheme Procedure} sane-service-type -This service provides access to scanners @i{via} -@uref{http://www.sane-project.org, SANE} by installing the necessary udev -rules. -@end deffn - @defvr {Scheme Variable} %standard-geoclue-applications The standard list of well-known GeoClue application configurations, granting authority to the GNOME date-and-time utility to ask for the