Ludovic Courtès <[email protected]> skribis:

> We stumbled upon an idiom for package arguments that, combined with
> package inheritance, would not work as expected.

[...]

> We don’t want to (package-arguments this-package) here: that would
> naturally lead to an infinite loop.  But we want something close to it,
> in spirit: (package-arguments parent), where ‘parent’ is the package we
> inherit from.
>
> (package-arguments parent) could call the ‘arguments’ thunk of the
> parent, but it would pass it the child as its argument.

Here’s an example where I ended up manually defining ‘parent’:

  
https://git.savannah.gnu.org/cgit/guix.git/commit/?h=core-updates&id=0aed5bf5120bd434e53be0cea3f96547f95837d6

Ludo’.



Reply via email to