unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Saku Laesvuori <saku@laesvuori.fi>
To: Tobias Geerinckx-Rice <me@tobias.gr>
Cc: help-guix@gnu.org, Nathan Dehnel <ncdehnel@gmail.com>
Subject: Re: Store path in package definition
Date: Sun, 28 Aug 2022 17:30:49 +0300	[thread overview]
Message-ID: <20220828143049.hecyng6f3on2mqbt@X-kone> (raw)
In-Reply-To: <BEB0208A-1EC0-424C-B97A-2C9265D7711D@tobias.gr>

[-- Attachment #1: Type: text/plain, Size: 934 bytes --]

> Modulo typos, and indentation being weird because 'phone,
> 
> (arguments
>  (list
>   #:make-flags
>   #~(list (string-append "HELLO=" #$output "/bin/hello"))
>   #:phases
>   #~(modify-phases %standard-phases
>      (add-after 'unpack 'option-one
>       (lambda _
>        (substitute* "foo.c"
>         (("hello")
>          (string-append #$output "/bin/hello")))))
>      (add-after 'unpack 'option-two
>       (lambda* (#:key outputs #:allow-other-keys
>        (let ((out (assoc-ref outputs "out")))
>         (substitute* "foo.c"
>          (("hello")
>          (string-append out "/bin/hello"))))))))))

Thanks all. I got that part working. Unfortunately I found out that
firefox/icecat tries to find native messaging manifests only from a
hardcoded /usr/lib/... path so packaging a native messaging host
manifest is impossible without patching the browser (as far as I know).

- Saku Laesvuori

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

  reply	other threads:[~2022-08-28 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 20:39 Store path in package definition Nathan Dehnel
2022-08-26 20:45 ` (
2022-08-26 21:09 ` Tobias Geerinckx-Rice
2022-08-28 14:30   ` Saku Laesvuori [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-25 19:21 Saku Laesvuori
2022-08-27 10:44 ` Hartmut Goebel

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=20220828143049.hecyng6f3on2mqbt@X-kone \
    --to=saku@laesvuori.fi \
    --cc=help-guix@gnu.org \
    --cc=me@tobias.gr \
    --cc=ncdehnel@gmail.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.
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).