Re: Store path in package definition

2022-08-28 Thread Saku Laesvuori
> 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"

Re: Store path in package definition

2022-08-27 Thread Hartmut Goebel
Am 25.08.22 um 21:21 schrieb Saku Laesvuori: I'm writing a package definition for [passff-host](https://github.com/passff/passff-host) which requires a file to reference another file with an absolute path (passff.json must reference passff.py). How can I get the resulting store path to patch it

Re: Store path in package definition

2022-08-26 Thread Tobias Geerinckx-Rice
Hi, On 26 August 2022 20:39:55 UTC, Nathan Dehnel wrote: >Would something like this work? > >(string-append (assoc-ref %outputs "out") "/passff.py") Consider this deprecated. It's unreliable and even where it appears to work can break for what seems to be no reason when, e.g.,

Re: Store path in package definition

2022-08-26 Thread (
On Fri Aug 26, 2022 at 9:39 PM BST, Nathan Dehnel wrote: > (string-append (assoc-ref %outputs "out") "/passff.py") s/\(assoc-ref %outputs "out"\)/#$output/ :) -- (

Store path in package definition

2022-08-26 Thread Nathan Dehnel
Would something like this work? (string-append (assoc-ref %outputs "out") "/passff.py") https://guix.gnu.org/cookbook/en/html_node/Extended-example.html#Build-system-arguments

Store path in package definition

2022-08-25 Thread Saku Laesvuori
Hi, I'm writing a package definition for [passff-host](https://github.com/passff/passff-host) which requires a file to reference another file with an absolute path (passff.json must reference passff.py). How can I get the resulting store path to patch it to the file? I would assume I have to do