help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Store path in package definition


From: Saku Laesvuori
Subject: Re: Store path in package definition
Date: Sun, 28 Aug 2022 17:30:49 +0300

> 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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]