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

2012-02-08 Thread Eelco Dolstra
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/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-02-08 Thread Yury G. Kudryashov
Eelco Dolstra wrote:

 Hi,
 
 On 25/02/10 14:06, Sander van der Burg wrote:
 
 What to do about this?  For now we should probably change the licenses in
 pkgs/lib/licenses.nix to be strings.
I'd prefer to fix tools.
-- 
Yury G. Kudryashov,
mailto: ur...@mccme.ru

___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-02-08 Thread Eelco Dolstra
On 08/02/12 17:01, Yury G. Kudryashov wrote:

 On 25/02/10 14:06, Sander van der Burg wrote:

 What to do about this?  For now we should probably change the licenses in
 pkgs/lib/licenses.nix to be strings.
 I'd prefer to fix tools.

What's wrong with the tools, and what should the fix be?

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-02-08 Thread Florian Friesdorf
On Wed, 08 Feb 2012 16:37:58 +0100, Eelco Dolstra e.dols...@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 f...@chaoflow.net
  GPG FPR: 7A13 5EEE 1421 9FC2 108D  BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: f...@chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC


pgptnXyMMcTbq.pgp
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


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

2012-02-08 Thread Marc Weber
Other languages have toString methods.
Not sure whether such special name should be introduced..
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev