From: Bengt Richter <bokr@bokr.com>
To: Pierre Neidhardt <mail@ambrevar.xyz>
Cc: 44612@debbugs.gnu.org
Subject: bug#44612: Read standard input in `guix repl'
Date: Fri, 13 Nov 2020 20:08:30 +0100 [thread overview]
Message-ID: <20201113190830.GA2995@LionPure> (raw)
In-Reply-To: <87h7ptzj8t.fsf@ambrevar.xyz>
Hi Pierre,
On +2020-11-13 10:41:38 +0100, Pierre Neidhardt wrote:
> `guix repl` is a fantastic, hassle-free tool to bind Guix with
> third-party languages. I've done it here:
>
> https://github.com/atlas-engineer/nyxt/blob/2-pre-release-4/libraries/ospama/ospama-guix.lisp
>
> It just works!
>
> The only issue is that it needs to be passed a file, so I must create a
> temporary file so that I can call `guix repl` on it.
>
> It'd be better if we could send Guile code to the standard input of the
> `guix repl -` process to bypass file generation.
>
> Thoughts?
>
Would this enable people to type something like
wget -O - http:try.this.for.example.com/fun.mischief|guix repl -
and if so, can you suggest some options for automatic hash or signature
checking so that a paranoid could feel safe using a file pointed to
by a friend?
(I know one can already do silly stuff ... :)
I was hoping for a concise option that would enable a standard way of doing
integrity/trust checks by the stdin bufferful within guix. (Which I guess implies
designing fun.mischief file syntax as some kind of container packet stream, with
individually verifiable packets -- what would that mean for input to guix repl?).
Maybe a --paranoid option at the level of --dry-run or -n ?
(maybe configurable as default --paranoid=on :)
As far as avoiding file generation, a pipeline that needs file-size chunks to do
validation checks would only avoid file inode supply limits, right?
I guess YMMV per platform? IPC also has supply limits, IIRC.
Hm, what about an option for guix like
guix --trust-manifest="file-containing-sufficient-verification-info-for-what-happens-next" repl -
meaning e.g., sha256sum value for what would be passed via '-' and if that contains references
to other files etc., than hashes or signatures etc for everything entailed.
> --
> Pierre Neidhardt
> https://ambrevar.xyz/
--
Regards,
Bengt Richter
next prev parent reply other threads:[~2020-11-13 19:09 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-13 9:41 bug#44612: Read standard input in `guix repl' Pierre Neidhardt
2020-11-13 19:08 ` Bengt Richter [this message]
2020-11-13 22:24 ` zimoun
2020-11-16 9:25 ` Ludovic Courtès
2020-11-16 11:36 ` Pierre Neidhardt
2020-11-16 11:53 ` Pierre Neidhardt
2020-11-16 12:52 ` Ludovic Courtès
2020-11-16 16:11 ` Pierre Neidhardt
2020-11-13 20:27 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 9:52 ` Pierre Neidhardt
2020-11-14 11:23 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 13:19 ` Pierre Neidhardt
2020-11-14 13:58 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 15:03 ` Guillaume Le Vaillant
2020-11-14 15:07 ` Guillaume Le Vaillant
2020-11-14 16:06 ` Pierre Neidhardt
2020-11-14 15:22 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 15:36 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 16:11 ` Pierre Neidhardt
2020-11-14 15:43 ` Christopher Baines
2020-11-14 16:03 ` Pierre Neidhardt
2020-11-14 13:24 ` Pierre Neidhardt
2020-11-14 14:12 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 16:05 ` Pierre Neidhardt
2020-11-14 16:13 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 16:25 ` Pierre Neidhardt
2020-11-14 17:08 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 17:21 ` Pierre Neidhardt
2020-11-14 17:33 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-14 19:08 ` zimoun
2020-11-16 10:45 ` Tobias Geerinckx-Rice via Bug reports for GNU Guix
2020-11-16 11:38 ` zimoun
2020-11-14 12:09 ` zimoun
2020-12-01 7:52 ` Ludovic Courtès
2020-12-01 8:29 ` Pierre Neidhardt
2020-12-03 10:22 ` Ludovic Courtès
2020-12-03 10:33 ` Pierre Neidhardt
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=20201113190830.GA2995@LionPure \
--to=bokr@bokr.com \
--cc=44612@debbugs.gnu.org \
--cc=mail@ambrevar.xyz \
/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.