From: "Marek Paśnikowski" <marek@marekpasnikowski.pl>
To: help-guix@gnu.org
Subject: Re: How do I use wrap-ruby-program to make curl findable in a Ruby package?
Date: Mon, 05 Feb 2024 21:35:53 +0100 [thread overview]
Message-ID: <8965685.VV5PYv0bhD@akashi> (raw)
In-Reply-To: <38010331.XM6RcZxFsP@akashi>
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
05.02.2024 10:39:08 CET Marek Paśnikowski:
> 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.
After many hours of searching and thinking I found the following code works:
#+BEGIN_SRC scheme
(arguments
'(#:phases
(modify-phases
%standard-phases
(delete 'check)
(add-after
'wrap
'include-curl
(lambda* (#:key inputs outputs #:allow-other-keys)
(wrap-program
(search-input-file outputs "bin/nb")
`("LD_LIBRARY_PATH"
suffix
,(list
(dirname
(search-input-file inputs "lib/libcurl.so"))))))))
#+END_SRC
When I will have rested from this code adventure, I will make effort to
publish the entire package set I created to make this program work.
Sincerely,
Marek Paśnikowski
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-02-05 20:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-05 9:39 How do I use wrap-ruby-program to make curl findable in a Ruby package? Marek Paśnikowski
2024-02-05 20:35 ` Marek Paśnikowski [this message]
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=8965685.VV5PYv0bhD@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).