Branch: refs/heads/master
  Home:   https://github.com/NixOS/nix
  Commit: 4921223160ebde522b8362c46e8f962fc09878ac
      
https://github.com/NixOS/nix/commit/4921223160ebde522b8362c46e8f962fc09878ac
  Author: Pascal Wittmann <[email protected]>
  Date:   2015-11-21 (Sat, 21 Nov 2015)

  Changed paths:
    M src/nix-env/nix-env.cc

  Log Message:
  -----------
  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.


  Commit: afef347157e618acb1f6e10b3d92ab897991cf2a
      
https://github.com/NixOS/nix/commit/afef347157e618acb1f6e10b3d92ab897991cf2a
  Author: Eelco Dolstra <[email protected]>
  Date:   2015-11-25 (Wed, 25 Nov 2015)

  Changed paths:
    M src/nix-env/nix-env.cc

  Log Message:
  -----------
  Merge pull request #712 from pSub/print-meta-license

Print license information on '--xml --meta'


Compare: https://github.com/NixOS/nix/compare/4c1c7e58128f...afef347157e6
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to