[Nix-dev] [Nix-commits] SVN commit: nix - 20248 - sandervanderburg - nixpkgs/trunk/pkgs/lib

Eelco Dolstra e.dolstra at tudelft.nl
Wed Feb 8 16:37:58 CET 2012


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.)  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.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list