[Nix-dev] pkgs/lib/licenses.nix: strings or attrsets?

Vladimír Čunát vcunat at gmail.com
Tue Aug 20 13:55:21 CEST 2013


On 08/20/2013 01:37 PM, Eelco Dolstra wrote:
> Basically, meta.* attributes have to be (lists of) strings or integers.  They
> cannot be attribute sets.  So if meta.license is an attribute set, it won't show
> up in "nix-env -qa --meta --xml" output or in Hydra under a build's "License" field.
>
> So yeah, a PR to change everything to strings would be welcome.

Then I fail to see the point of lib.licenses, as it's easier e.g. to 
write "GPLv2" than lib.licenses.gpl2.

On the other hand, it seemed nice to me that this way we could attach 
additional information, e.g. URL of the full license.


Vlada


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3251 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20130820/e04d2116/attachment.bin 


More information about the nix-dev mailing list