From: Allan Adair <allan@adair.no>
To: guix-devel@gnu.org
Subject: Re: How to find binaries in libexec dir?
Date: Tue, 19 Apr 2022 09:17:42 +0200 [thread overview]
Message-ID: <64ece88ea588885748e16d42ddee8d1690276bbc.camel@adair.no> (raw)
In-Reply-To: <87o80z7870.fsf@contorta>
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
Hi!
I'm not sure if the following suggestion is a canonical way of doing
things (I'm a scheme newb), but it is possible to define a package variant
of diffoscope with a G-expression that uses wrap-program (see
guix/build/utils.scm) to include paths to dependencies as part of an
environment variable.
From the docstring:
"This is useful for scripts that expect particular programs to be in
$PATH, for programs that expect particular shared libraries to be in
$LD_LIBRARY_PATH, or modules in $GUILE_LOAD_PATH, etc."
As Liliana said, it is possilbe to iterate over package-inputs to compute
the paths in the package definition of a diffoscope variant. So until the
problem with xb-tool is fixed, maybe this is a good way to go?
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 854 bytes --]
prev parent reply other threads:[~2022-04-20 12:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-16 23:21 How to find binaries in libexec dir? Vagrant Cascadian
2022-04-17 18:52 ` Danny Milosavljevic
2022-04-17 19:27 ` Vagrant Cascadian
2022-04-17 19:54 ` Liliana Marie Prikler
2022-04-17 20:42 ` Vagrant Cascadian
2022-04-19 7:17 ` Allan Adair [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=64ece88ea588885748e16d42ddee8d1690276bbc.camel@adair.no \
--to=allan@adair.no \
--cc=guix-devel@gnu.org \
/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.