Leo Famulari <l...@famulari.name> writes:

> Generally, we have the problem of using different variables named
> 'expat', 'zlib', 'openssl', and possibly others. For those 3, there are
> both package and license variables sharing the name.
>
> So, if we want to refer to both the package and license variables of,
> for example, expat, we have to distinguish them somehow. So, we
> sometimes "prefix" the licenses when they are used, to distinguish them
> from the packages.
>
> There is a good example in 'gnu/packages/admin.scm'. Check line 33,
> where the license module is imported:
>
> 33   #:use-module ((guix licenses) #:prefix license:)
>
> and line 107, where you can see it in action:
>
> 107     (license license:gpl2+)))
>
> Using #:select to only import specific licenses can help, but you still
> have a problem when it's time to #:select the expat license.

I see!  That's useful.  Thanks for the tip.

-- 
Chris

Attachment: signature.asc
Description: PGP signature

Reply via email to