Subject: Re: bug#50335: Inheritance vs. ‘this-package’

From: Ludovic Courtès <[email-masked]>
Date: Sat, 04 Mar 2023 16:15:50 +0100

Ludovic Courtès <[email-masked]> 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’.