From: ludo@gnu.org (Ludovic Courtès)
To: Hartmut Goebel <h.goebel@crazy-compilers.com>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Which inputs to define for 'meta' utilities?
Date: Mon, 05 Feb 2018 14:21:47 +0100 [thread overview]
Message-ID: <877errd11w.fsf@gnu.org> (raw)
In-Reply-To: <81cd4b35-6ab3-7709-fab6-b59c0cc49c48@crazy-compilers.com> (Hartmut Goebel's message of "Sat, 3 Feb 2018 12:37:02 +0100")
Hi,
Hartmut Goebel <h.goebel@crazy-compilers.com> skribis:
> I'm about to package dtrx <https://brettcsmith.org/2007/dtrx/>, a script
> to intelligently extract multiple archive types. The script determines
> the archive format and calls the respective extraction tool, which it
> searches on the $PATH.
>
> 1) Should I add all required tools as inputs?
>
> 2) Should I use propagated inputs then? The executable are searched on
> $PATH.
Option #2 is a bad idea (propagated inputs should be used only as a last
resort.)
Adding the tools as inputs is only useful if there are tests that
actually run dtrx; otherwise it’s useless.
Then you have two options:
1. Let dtrx search for tools in $PATH. The downside is that it won’t
work out-of-the-box, as in “guix environment -C --ad-hoc dtrx”.
2. Hard-code the absolute file names for the tools in question in
dtrx. That way ‘guix pack dtrx’ will be self-contained, etc.
I’d prefer #2.
Ludo’.
prev parent reply other threads:[~2018-02-05 13:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-03 11:37 Which inputs to define for 'meta' utilities? Hartmut Goebel
2018-02-05 13:21 ` Ludovic Courtès [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877errd11w.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=guix-devel@gnu.org \
--cc=h.goebel@crazy-compilers.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 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.