{"action":"opened","number":712,"pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/712","id":51439082,"html_url":"https://github.com/NixOS/nix/pull/712","diff_url":"https://github.com/NixOS/nix/pull/712.diff","patch_url":"https://github.com/NixOS/nix/pull/712.patch","issue_url":"https://api.github.com/repos/NixOS/nix/issues/712","number":712,"state":"open","locked":false,"title":"Print license information on '--xml --meta'","user":{"login":"pSub","id":83842,"avatar_url":"https://avatars.githubusercontent.com/u/83842?v=3","gravatar_id":"","url":"https://api.github.com/users/pSub","html_url":"https://github.com/pSub","followers_url":"https://api.github.com/users/pSub/followers","following_url":"https://api.github.com/users/pSub/following{/other_user}","gists_url":"https://api.github.com/users/pSub/gists{/gist_id}","starred_url":"https://api.github.com/users/pSub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pSub/subscriptions","organizations_url":"https://api.github.com/users/pSub/orgs","repos_url":"https://api.github.com/users/pSub/repos","events_url":"https://api.github.com/users/pSub/events{/privacy}","received_events_url":"https://api.github.com/users/pSub/received_events","type":"User","site_admin":false},"body":"The nixpkgs manual prescribes the use of values from stdenv.lib.licenses\r\nfor the meta.license attribute. Those values are attribute sets and\r\ncurrently skipped when running nix-env with '--xml --meta'. This has the\r\nconsequence that also nixpkgs-lint will report missing licenses.\r\n\r\nWith this commit nix-env with '--xml --meta' will print all attributes\r\nof an attribute set that are of type tString. For example the output for\r\nthe package nixpkgs.hello is\r\n\r\n    <meta name=\"license\" type=\"strings\">\r\n      <string type=\"url\" value=\"http://spdx.org/licenses/GPL-3.0+\" />\r\n      <string type=\"shortName\" value=\"gpl3Plus\" />\r\n      <string type=\"fullName\" value=\"GNU General Public License v3.0 or later\" />\r\n      <string type=\"spdxId\" value=\"GPL-3.0+\" />\r\n    </meta>\r\n\r\nThis commit fixes nixpkgs-lint, too.\r\n\r\nCloses #288, https://github.com/NixOS/nixpkgs/issues/9966 and is also relevant for the \"automatic linter\" mentioned in https://github.com/NixOS/nixpkgs/issues/11166.","created_at":"2015-11-21T10:59:35Z","updated_at":"2015-11-21T10:59:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/NixOS/nix/pulls/712/commits","review_comments_url":"https://api.github.com/repos/NixOS/nix/pulls/712/comments","review_comment_url":"https://api.github.com/repos/NixOS/nix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/712/comments","statuses_url":"https://api.github.com/repos/NixOS/nix/statuses/4921223160ebde522b8362c46e8f962fc09878ac","head":{"label":"pSub:print-meta-license","ref":"print-meta-license","sha":"4921223160ebde522b8362c46e8f962fc09878ac","user":{"login":"pSub","id":83842,"avatar_url":"https://avatars.githubusercontent.com/u/83842?v=3","gravatar_id":"","url":"https://api.github.com/users/pSub","html_url":"https://github.com/pSub","followers_url":"https://api.github.com/users/pSub/followers","following_url":"https://api.github.com/users/pSub/following{/other_user}","gists_url":"https://api.github.com/users/pSub/gists{/gist_id}","starred_url":"https://api.github.com/users/pSub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pSub/subscriptions","organizations_url":"https://api.github.com/users/pSub/orgs","repos_url":"https://api.github.com/users/pSub/repos","events_url":"https://api.github.com/users/pSub/events{/privacy}","received_events_url":"https://api.github.com/users/pSub/received_events","type":"User","site_admin":false},"repo":{"id":44005515,"name":"nix","full_name":"pSub/nix","owner":{"login":"pSub","id":83842,"avatar_url":"https://avatars.githubusercontent.com/u/83842?v=3","gravatar_id":"","url":"https://api.github.com/users/pSub","html_url":"https://github.com/pSub","followers_url":"https://api.github.com/users/pSub/followers","following_url":"https://api.github.com/users/pSub/following{/other_user}","gists_url":"https://api.github.com/users/pSub/gists{/gist_id}","starred_url":"https://api.github.com/users/pSub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pSub/subscriptions","organizations_url":"https://api.github.com/users/pSub/orgs","repos_url":"https://api.github.com/users/pSub/repos","events_url":"https://api.github.com/users/pSub/events{/privacy}","received_events_url":"https://api.github.com/users/pSub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pSub/nix","description":"Nix, the purely functional package manager","fork":true,"url":"https://api.github.com/repos/pSub/nix","forks_url":"https://api.github.com/repos/pSub/nix/forks","keys_url":"https://api.github.com/repos/pSub/nix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pSub/nix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pSub/nix/teams","hooks_url":"https://api.github.com/repos/pSub/nix/hooks","issue_events_url":"https://api.github.com/repos/pSub/nix/issues/events{/number}","events_url":"https://api.github.com/repos/pSub/nix/events","assignees_url":"https://api.github.com/repos/pSub/nix/assignees{/user}","branches_url":"https://api.github.com/repos/pSub/nix/branches{/branch}","tags_url":"https://api.github.com/repos/pSub/nix/tags","blobs_url":"https://api.github.com/repos/pSub/nix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pSub/nix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pSub/nix/git/refs{/sha}","trees_url":"https://api.github.com/repos/pSub/nix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pSub/nix/statuses/{sha}","languages_url":"https://api.github.com/repos/pSub/nix/languages","stargazers_url":"https://api.github.com/repos/pSub/nix/stargazers","contributors_url":"https://api.github.com/repos/pSub/nix/contributors","subscribers_url":"https://api.github.com/repos/pSub/nix/subscribers","subscription_url":"https://api.github.com/repos/pSub/nix/subscription","commits_url":"https://api.github.com/repos/pSub/nix/commits{/sha}","git_commits_url":"https://api.github.com/repos/pSub/nix/git/commits{/sha}","comments_url":"https://api.github.com/repos/pSub/nix/comments{/number}","issue_comment_url":"https://api.github.com/repos/pSub/nix/issues/comments{/number}","contents_url":"https://api.github.com/repos/pSub/nix/contents/{+path}","compare_url":"https://api.github.com/repos/pSub/nix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pSub/nix/merges","archive_url":"https://api.github.com/repos/pSub/nix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pSub/nix/downloads","issues_url":"https://api.github.com/repos/pSub/nix/issues{/number}","pulls_url":"https://api.github.com/repos/pSub/nix/pulls{/number}","milestones_url":"https://api.github.com/repos/pSub/nix/milestones{/number}","notifications_url":"https://api.github.com/repos/pSub/nix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pSub/nix/labels{/name}","releases_url":"https://api.github.com/repos/pSub/nix/releases{/id}","created_at":"2015-10-10T10:06:10Z","updated_at":"2015-10-10T10:06:13Z","pushed_at":"2015-11-21T10:53:53Z","git_url":"git://github.com/pSub/nix.git","ssh_url":"git@github.com:pSub/nix.git","clone_url":"https://github.com/pSub/nix.git","svn_url":"https://github.com/pSub/nix","homepage":"http://nixos.org/nix/","size":17411,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NixOS:master","ref":"master","sha":"b9b7bb18063d8315cd84424b7e3535b76d06cfc6","user":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"repo":{"id":3386088,"name":"nix","full_name":"NixOS/nix","owner":{"login":"NixOS","id":487568,"avatar_url":"https://avatars.githubusercontent.com/u/487568?v=3","gravatar_id":"","url":"https://api.github.com/users/NixOS","html_url":"https://github.com/NixOS","followers_url":"https://api.github.com/users/NixOS/followers","following_url":"https://api.github.com/users/NixOS/following{/other_user}","gists_url":"https://api.github.com/users/NixOS/gists{/gist_id}","starred_url":"https://api.github.com/users/NixOS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NixOS/subscriptions","organizations_url":"https://api.github.com/users/NixOS/orgs","repos_url":"https://api.github.com/users/NixOS/repos","events_url":"https://api.github.com/users/NixOS/events{/privacy}","received_events_url":"https://api.github.com/users/NixOS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NixOS/nix","description":"Nix, the purely functional package manager","fork":false,"url":"https://api.github.com/repos/NixOS/nix","forks_url":"https://api.github.com/repos/NixOS/nix/forks","keys_url":"https://api.github.com/repos/NixOS/nix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NixOS/nix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NixOS/nix/teams","hooks_url":"https://api.github.com/repos/NixOS/nix/hooks","issue_events_url":"https://api.github.com/repos/NixOS/nix/issues/events{/number}","events_url":"https://api.github.com/repos/NixOS/nix/events","assignees_url":"https://api.github.com/repos/NixOS/nix/assignees{/user}","branches_url":"https://api.github.com/repos/NixOS/nix/branches{/branch}","tags_url":"https://api.github.com/repos/NixOS/nix/tags","blobs_url":"https://api.github.com/repos/NixOS/nix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NixOS/nix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NixOS/nix/git/refs{/sha}","trees_url":"https://api.github.com/repos/NixOS/nix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NixOS/nix/statuses/{sha}","languages_url":"https://api.github.com/repos/NixOS/nix/languages","stargazers_url":"https://api.github.com/repos/NixOS/nix/stargazers","contributors_url":"https://api.github.com/repos/NixOS/nix/contributors","subscribers_url":"https://api.github.com/repos/NixOS/nix/subscribers","subscription_url":"https://api.github.com/repos/NixOS/nix/subscription","commits_url":"https://api.github.com/repos/NixOS/nix/commits{/sha}","git_commits_url":"https://api.github.com/repos/NixOS/nix/git/commits{/sha}","comments_url":"https://api.github.com/repos/NixOS/nix/comments{/number}","issue_comment_url":"https://api.github.com/repos/NixOS/nix/issues/comments{/number}","contents_url":"https://api.github.com/repos/NixOS/nix/contents/{+path}","compare_url":"https://api.github.com/repos/NixOS/nix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NixOS/nix/merges","archive_url":"https://api.github.com/repos/NixOS/nix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NixOS/nix/downloads","issues_url":"https://api.github.com/repos/NixOS/nix/issues{/number}","pulls_url":"https://api.github.com/repos/NixOS/nix/pulls{/number}","milestones_url":"https://api.github.com/repos/NixOS/nix/milestones{/number}","notifications_url":"https://api.github.com/repos/NixOS/nix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NixOS/nix/labels{/name}","releases_url":"https://api.github.com/repos/NixOS/nix/releases{/id}","created_at":"2012-02-08T10:17:59Z","updated_at":"2015-11-20T15:38:57Z","pushed_at":"2015-11-21T10:59:36Z","git_url":"git://github.com/NixOS/nix.git","ssh_url":"git@github.com:NixOS/nix.git","clone_url":"https://github.com/NixOS/nix.git","svn_url":"https://github.com/NixOS/nix","homepage":"http://nixos.org/nix/","size":18877,"stargazers_count":641,"watchers_count":641,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":157,"mirror_url":null,"open_issues_count":289,"forks":157,"open_issues":289,"watchers":641,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NixOS/nix/pulls/712"},"html":{"href":"https://github.com/NixOS/nix/pull/712"},"issue":{"href":"https://api.github.com/repos/NixOS/nix/issues/712"},"comments":{"href":"https://api.github.com/repos/NixOS/nix/issues/712/comments"},"review_comments":{"href":"https://api.github.com/repos/NixOS/nix/pulls/712/comments"},"review_comment":{"href":"https://api.github.com/repos/NixOS/nix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NixOS/nix/pulls/712/commits"},"statuses":{"href":"https://api.github.com/repos/NixOS/nix/statuses/4921223160ebde522b8362c46e8f962fc09878ac"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":0,"changed_files":1}}