From: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
To: help-guix@gnu.org
Subject: How do I use wrap-ruby-program to make curl findable in a Ruby package?
Date: Mon, 05 Feb 2024 10:39:08 +0100 [thread overview]
Message-ID: <38010331.XM6RcZxFsP@akashi> (raw)
[-- Attachment #1: Type: text/plain, Size: 1428 bytes --]
Dear All
I am having one problem with correctly packaging ruby-nano-bots[^1]. The Ruby
gem wants to load libcurl at runtime and is not able to find it without
setting the LD_LIBRARY_PATH to ~/.guix-profile/lib . This is the final
problem to solve, because after I performed ~guix install curl~ and exported
the above path adjustment, I am now able to use the application.
Armed with this tool, I started interviewing the Mistral AI on ways to perform
the path adjustment inside a package definition. Unfortunately, it started
hallucating, but not without making me discover a ~wrap-ruby-program~ function
in guix/build/ruby-build-system.scm (line 188).
I understand that I actually want to include a path other than $GUIX_PROFILE ,
but have absolutely no idea if there exists a standard path with package
inputs, or how it would interact with =wrap-ruby-program= . This is why I
will focus my question on usage of the $GUIX_PROFILE and then proceed to think
about the ultimately correct path.
Can I use the function in the body of the package definition, or does the
package definition go inside the wrapper? Could you provide an example how to
set the following? ~LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GUIX_PROFILE/lib~ . The
function code is honestly completely unreadable to me at the moment.
Sincerely,
Marek Paśnikowski
[^1]: [[https://github.com/icebaker/ruby-nano-bots]]
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next reply other threads:[~2024-02-05 9:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 9:39 Marek Paśnikowski [this message]
2024-02-05 20:35 ` How do I use wrap-ruby-program to make curl findable in a Ruby package? Marek Paśnikowski
2024-02-06 12:20 ` Carlo Zancanaro
2024-02-06 12:42 ` Marek Paśnikowski
2024-02-06 13:28 ` Carlo Zancanaro
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=38010331.XM6RcZxFsP@akashi \
--to=marek@marekpasnikowski.pl \
--cc=help-guix@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.
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).