[Nix-dev] [Nix-commits] SVN commit: nix - 20248 - sandervanderburg - nixpkgs/trunk/pkgs/lib
Florian Friesdorf
flo at chaoflow.net
Wed Feb 8 17:24:13 CET 2012
On Wed, 08 Feb 2012 16:37:58 +0100, Eelco Dolstra <e.dolstra at tudelft.nl> wrote:
> Hi,
>
> On 25/02/10 14:06, Sander van der Burg wrote:
>
> > Log:
> > Added initial licenses attributeset to specify meta.license attributes more concisely
>
> > + asl20 = {
> > + shortName = "ASL2.0";
> > + fullName = "Apache Software License 2.0";
> > + url = http://www.apache.org/licenses/LICENSE-2.0;
> > + };
> ...
>
> I just noticed that meta.license attributes specified using
> stdenv.lib.licenses.* don't work, because meta attributes are not allowed to be
> attribute sets. (They can be strings, lists of strings or integers.)
How about attribute sets where all values are strings? It sounds like it
is an requirement to easily generate a string representation of the mata
attribute.
Or would it be possible to use the fullName or ShortName as "string value"
of the attribute set?
> Thus, for
> instance, licenses specified in this way don't show up in "nix-env -q --meta
> --xml" or in Hydra build pages.
>
> What to do about this? For now we should probably change the licenses in
> pkgs/lib/licenses.nix to be strings.
--
Florian Friesdorf <flo at chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo at chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20120208/7ca00290/attachment.bin
More information about the nix-dev
mailing list