Hi nomike, 

On May 19, 2025 1:27:59 AM GMT+02:00, "nomike (they/them)" <nom...@nomike.com> 
wrote:
>Hi!
>
>I've just discovered that when you inherit a package from another one, it does 
>not inherit the parent's name.
>
>In the [[https://guix.gnu.org/cookbook/en/html_node/Inheritance.html][guix 
>cookbook]] however. it says:
>
>#+BEGIN_QUOTE
>All unspecified fields are inherited from the parent package.
>#+END_QUOTE
>
>But obviously this is not the case, as you get a compile error from guile when 
>you omit the name from a derived package.

Did you try referencing the name, like in source field? Referencing of fields 
doesn't read from inherited packages. It is very simple, it looks only on the 
fields you specified. 

So it is not true that name is not inherited, it is just that to get the name, 
you would have to do (package-name base) assuming you bound the base package to 
variable base, in a let. 

Rutherther 

>
>So either this is a bug in the package-libraries or a bug in the cookbook.
>
>Any opinions on that?
>
>Cheers
>
>nomike
>
>

Reply via email to