Print license information on '--xml --meta'
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.

ttuegel/nix,dezgeg/nix,garbas/nix,NixOS/nix,rycee/nix,bennofs/nix,ttuegel/nix,layus/nix,wmertens/nix,ysangkok/nix,garbas/nix,shlevy/nix,ehmry/nix,dtzWill/nix,ehmry/nix,garbas/nix,ysangkok/nix,rycee/nix,shlevy/nix,bennofs/nix,NixOS/nix,wmertens/nix,NixOS/nix,bennofs/nix,shlevy/nix,ehmry/nix,dezgeg/nix,vcunat/nix,vcunat/nix,layus/nix,wmertens/nix,ehmry/nix,peti/nix,NixOS/nix,dezgeg/nix,vcunat/nix,garbas/nix,zimbatm/nix,peti/nix,layus/nix,dezgeg/nix,zimbatm/nix,rycee/nix,ysangkok/nix,layus/nix,bennofs/nix,peti/nix,ttuegel/nix,pikajude/nix,wmertens/nix,peti/nix,dtzWill/nix,garbas/nix,pikajude/nix,shlevy/nix,vcunat/nix,ttuegel/nix,ehmry/nix,dtzWill/nix,NixOS/nix,dezgeg/nix,rycee/nix,pikajude/nix,dtzWill/nix,peti/nix,dtzWill/nix,zimbatm/nix,shlevy/nix,ehmry/nix,zimbatm/nix,rycee/nix,layus/nix