guix-devel
[Top][All Lists]
Advanced

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

Re: extract tools from guix scripts


From: Gábor Boskovits
Subject: Re: extract tools from guix scripts
Date: Thu, 8 Mar 2018 21:26:25 +0100

2018-03-08 21:15 GMT+01:00 Ricardo Wurmus <address@hidden>:

Gábor Boskovits <address@hidden> writes:

> 2018-03-08 20:01 GMT+01:00 Ricardo Wurmus <address@hidden>:
>
>> Hi Guix,
>>
>> under “guix/scripts” there are a couple of tools that are really useful,
>> such as “guix challenge”.  While they are great for the command line,
>> I’d really like to use them from within Guile.
>>
>> Using “(guix-challenge)” directly is cumbersome, because I need to
>> provide an argument list “args”, which is then parsed internally.
>> Instead, I’d like to be able to say
>>
>>    (challenge #:urls (list "a" "b")
>>               #:packages (list foo bar baz))
>>
>> and have it produce some report values.  Then “guix-challenge” could be
>> implemented in terms of “challenge”.
>>
>> The same might be useful for “guix-build” or “guix-environment”.
>>
>>
> I agree. This would also enable more flexible cli possibilities, and
> would be really useful for scripting. Does this idea fit to the
> improve command line tools outreachy idea?

The outreachy project is about making the *output* of Guix prettier and
less cluttered, so this would not be part of that project.


I see, then I'm willing to help you out with this, if we decide to implement it.
I would wait for some more opinions thou.
 
--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net




reply via email to

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