guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make guix commands pipeable


From: zimoun
Subject: Re: Make guix commands pipeable
Date: Sun, 21 Mar 2021 11:21:28 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]