From: ludo@gnu.org (Ludovic Courtès)
To: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Cc: 28647@debbugs.gnu.org
Subject: [bug#28647] [PATCH] services: base: Add file->udev-rule function.
Date: Tue, 03 Oct 2017 15:18:49 +0200 [thread overview]
Message-ID: <87bmlo74jq.fsf@gnu.org> (raw)
In-Reply-To: <87lgkxxzr1.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 29 Sep 2017 11:58:58 -0400")
Hi Maxim,
Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
> While experimenting with udev rules, I found a need to be able to pass
> file-like objects containing udev rules to the udev-service. This patch
> implements a `file->udev-rule' method that does just that.
Looks useful!
> From 050e96b3325f851f3118de0c881d25796d76049b Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
> Date: Wed, 27 Sep 2017 21:33:25 -0400
> Subject: [PATCH] services: base: Add file->udev-rule function.
>
> This function allows passing a file-like object to the udev service.
>
> * gnu/services/base.scm (file->udev-rule): New function.
> * doc/guix.texi (Base Services): Document it.
[...]
> -@deffn {Scheme Procedure} udev-service [#:udev udev]
> +@deffn {Scheme Procedure} udev-service [#:udev @var{eudev} #:rules @code{'()}]
> Run @var{udev}, which populates the @file{/dev} directory dynamically.
> +Packages can be included in the @var{rules} list in order to extend the
> +udev rules with the definitions found under their
> +@file{lib/udev/rules.d} sub-directory.
> +
> +The functions @code{udev-rules} and @code{file->udev-rules} from
> +@code{(gnu services base)} can be used to create rule objects based on a
> +string or a file-like object, respectively. Those rule objects can be
> +passed to udev-service just like packages.
Could you document the procedures with @deffn so that they have an entry
in the index?
@deffn {Scheme Procedure} udev-rules @var{rules}
…
@end deffn
@deffn {Scheme Procedure} file->udev-rules @var{files}
Similar to @code{udev-rules}, but…
@end deffn
TIA!
Ludo’.
next prev parent reply other threads:[~2017-10-03 13:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-29 15:58 [bug#28647] [PATCH] services: base: Add file->udev-rule function Maxim Cournoyer
2017-10-03 13:18 ` Ludovic Courtès [this message]
2017-10-22 22:16 ` Ludovic Courtès
2017-10-23 1:53 ` [bug#28647] [PATCHv2] " Maxim Cournoyer
2017-10-23 2:39 ` Ludovic Courtès
2017-10-03 13:20 ` [bug#28647] [PATCH] " Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bmlo74jq.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=28647@debbugs.gnu.org \
--cc=maxim.cournoyer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.