Hi Hartmut, On 2023-08-05 09:25, Hartmut Goebel wrote: > Hi, > > I'm currently packaging vagrant and some plugins. For all plugins an > additional phase is required, generating a json file, see below. Since this > is quite some code, I'd like to put it into some definition or some wrapper. > Since it uses (this-package-verion), my attempts failed. > > At best, a plugin would then be defined like > > (define-public vagrant-abc (vagrant-plugin-wrapper (package … > > Anyhow I'd be happy to when being able to use some function in the phase > instead of duplicating the code. > > Any ideas? Many thanks in advance
I think using a procedure like you're suggesting here would be alright for this. Perhaps <https://issues.guix.gnu.org/63081#8> could serve as inspiration? -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno.