[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to replace %output with #$output?
From: |
Mekeor Melire |
Subject: |
Re: How to replace %output with #$output? |
Date: |
Tue, 22 Mar 2022 08:51:10 +0000 |
2022-03-22 / 16:16 / tumashu@163.com:
> Mekeor Melire <mekeor@posteo.de> writes:
>
>> 2022-03-21 / 21:57 / me@tobias.gr:
>>
>>> Remove the quote after arguments (replace it with a plain LIST call) and
>>> add #~ before (modify-phases ...) to define a gexp.
>>>
>>> Untested example:
>>>
>>> (arguments
>>> (list #:tests? #f ; no tests
>>> #:make-flags (list "CC=gcc")
>>> #:phases
>>> #~(modify-phases %standard-phases
>>> (delete 'configure)
>>> (add-after 'unpack 'patch-makefile
>>> (lambda _
>>> (substitute* "Makefile"
>>> (("/usr/local")
>>> #$output)))))))
>>
>> With these changes I get this error:
>>
>> Wrong type to apply: "CC=gcc"
>
> What about #~(list "CC=gcc") or '(list "CC=gcc") ?
It works. Thank you :)