unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: guix-devel@gnu.org
Subject: Re: Discoverability at the REPL level
Date: Mon, 16 Nov 2020 15:47:19 +0100	[thread overview]
Message-ID: <86v9e5qryg.fsf@gmail.com> (raw)
In-Reply-To: <87r1otwg8o.fsf@nckx>

Hi Tobias,

On Mon, 16 Nov 2020 at 15:03, Tobias Geerinckx-Rice <me@tobias.gr> wrote:

> I'm unconvinced there's a use case that justifies reinventing 
> shell aliases in Guix, in a heavy-weight fashion, while 
> simultaneously not being ‘worth’ a real Guixtension package.

For example, I have tried to implement something to deal with
Reproducibility issues [1].  For instance, I run:

   guix repl -L . -- weather-repro.scm | sort | grep ghc

to list (almost) all the unreproducible Haskell packages.  What I would
like (not implemented yet) is to be able to filter by build system for
example, i.e., adds options.  Concretely, let imagine:

   guix repl -L . \
        -- weather-repro.scm --sort=reverse --build-system=haskell,ocaml

which simply becomes:

   guix weather-repro --sort=reverse --build-system=haskell,ocaml

Shell aliases are too limited, if I am not missing the obvious.

Crazier example, use it inside the “time-machine”:

   guix time-machine --branch=version-1.2.0 \
        -- weather-repro --sort=reverse --build-system=haskell,ocaml

which is not affordable via shell aliases.


Aside the power it should provide to the user hand, it could also be
helpful to easily test variant CLI propositions, for example:

  guix env foo --inputs-of bar

doing what “guix environment bar --ad-hoc foo“ currently does.


Cheers,
simon

1: <https://yhetil.org/guix-devel/86mu0rt95k.fsf@gmail.com>


  reply	other threads:[~2020-11-16 14:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 13:02 Discoverability at the REPL level zimoun
2020-11-15 14:49 ` Danny Milosavljevic
2020-11-16 11:46   ` Ludovic Courtès
2020-11-16 14:03 ` Tobias Geerinckx-Rice
2020-11-16 14:47   ` zimoun [this message]
2020-11-16 14:21 ` Bengt Richter

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=86v9e5qryg.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=guix-devel@gnu.org \
    --cc=me@tobias.gr \
    /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).