Hi,

"Reza Alizadeh Majd" <r.m...@pantherx.org> skribis:

>> can do is add an input with that code:
>> 
>> (inputs `(("test-plugin.yaml" ,(plain-file …))))
>> 
>> Then inside your build phase, simply install this input with:
>> 
>> (install-file (assoc-ref inputs "test-plugin.yaml") regpath)
>> 
>> Alternatively, you can write to the file directly in the phase:
>> 
>> (with-output-to-file (string-append regpath "/test-plugin.yaml")
>>   (lambda _
>>     (format #t "…")))
>>
>
> Thanks, adding the file as an input solved the issue. 

Yes, that’s currently the only way.  What you wrote is not possible
because the package machinery does not use gexps yet.

Thanks,
Ludo’.

Reply via email to