unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: pkill9 <pkill9@runbox.com>, guix-devel@gnu.org
Subject: Re: Make guix commands pipeable
Date: Sun, 21 Mar 2021 11:21:28 +0100	[thread overview]
Message-ID: <86h7l4vmc7.fsf@gmail.com> (raw)
In-Reply-To: <20210320121353.0e568c7a@runbox.com>

Hi,

On Sat, 20 Mar 2021 at 12:13, pkill9 <pkill9@runbox.com> wrote:
> I would like to be able to pipe files into guix commands.

Well, this work:

  guix search hello | recsel -C -P name | xargs guix build

> Specifically the `guix system build` command, so I can build a system
> configuration on a remote Guix system over SSH, i.e. `cat config.scm |
> ssh <remote-system> guix system build -`, or perhaps using the
> `--expression` flag which would make more sense, e.g. `cat config.scm |
> ssh <remote-system> guix system build -e -`.

Does “cat config.scm | ssh <remote> xargs -0 guix system -e” work?

Indeed, maybe some commands are expecting a real file and cannot read
from stdin.


Cheers,
simon


      parent reply	other threads:[~2021-03-21 10:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-20 12:13 Make guix commands pipeable pkill9
2021-03-20 19:15 ` david larsson
2021-03-21 22:15   ` Léo Le Bouter
2021-03-24  0:01     ` pkill9
2021-03-24  0:03     ` pkill9
2021-03-21 10:21 ` zimoun [this message]

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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h7l4vmc7.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=pkill9@runbox.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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).