nix-gh/src/nix-env
Pascal Wittmann 4921223160 Print license information on '--xml --meta'
The nixpkgs manual prescribes the use of values from stdenv.lib.licenses
for the meta.license attribute. Those values are attribute sets and
currently skipped when running nix-env with '--xml --meta'. This has the
consequence that also nixpkgs-lint will report missing licenses.

With this commit nix-env with '--xml --meta' will print all attributes
of an attribute set that are of type tString. For example the output for
the package nixpkgs.hello is

    <meta name="license" type="strings">
      <string type="url" value="http://spdx.org/licenses/GPL-3.0+" />
      <string type="shortName" value="gpl3Plus" />
      <string type="fullName" value="GNU General Public License v3.0 or later" />
      <string type="spdxId" value="GPL-3.0+" />
    </meta>

This commit fixes nixpkgs-lint, too.
2015-11-21 11:43:44 +01:00
..
local.mk Update Makefile variable names 2014-02-01 13:54:38 +01:00
nix-env.cc Print license information on '--xml --meta' 2015-11-21 11:43:44 +01:00
user-env.cc Optimize small lists 2015-07-23 22:05:09 +02:00
user-env.hh Mis-read Eelko's request to not make this an option: now, let's not make 2015-05-20 17:29:52 +02:00