{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/24","repository_url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla","labels_url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/24/comments","events_url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/24/events","html_url":"https://github.com/mozilla/nixpkgs-mozilla/pull/24","id":220581606,"number":24,"title":"First attempt to support installing cross compilation targets","user":{"login":"bkchr","id":5718007,"avatar_url":"https://avatars1.githubusercontent.com/u/5718007?v=3","gravatar_id":"","url":"https://api.github.com/users/bkchr","html_url":"https://github.com/bkchr","followers_url":"https://api.github.com/users/bkchr/followers","following_url":"https://api.github.com/users/bkchr/following{/other_user}","gists_url":"https://api.github.com/users/bkchr/gists{/gist_id}","starred_url":"https://api.github.com/users/bkchr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkchr/subscriptions","organizations_url":"https://api.github.com/users/bkchr/orgs","repos_url":"https://api.github.com/users/bkchr/repos","events_url":"https://api.github.com/users/bkchr/events{/privacy}","received_events_url":"https://api.github.com/users/bkchr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-04-10T09:09:26Z","updated_at":"2017-06-30T03:22:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/pulls/24","html_url":"https://github.com/mozilla/nixpkgs-mozilla/pull/24","diff_url":"https://github.com/mozilla/nixpkgs-mozilla/pull/24.diff","patch_url":"https://github.com/mozilla/nixpkgs-mozilla/pull/24.patch"},"body":"Okay, now I need cross compilation support :D\r\n\r\nI began to add support for installing cross compilation targets, but at the moment it is dirty. \r\n\r\nThe problem is, that some targets like \"mips-unknown-linux-musl\" just exist for the \"rust-std\" extension. Next problem is, that if I install the rust package I have to add \"rust-std\" as extra extension although it already will be installed by the rust package.\r\n\r\nHere is my current default.nix:\r\n```nix\r\nwith import <nixpkgs> {}; \r\nlet \r\n  myrust = (rustChannels.stable.rust.override { extensions = [ \"rust-src\" \"rust-std\" ]; extCrossTargets = [ \"mips-unknown-linux-musl\" ]; });\r\nin\r\nstdenv.mkDerivation {\r\n  name = \"rust-dev\";\r\n  buildInputs = [ myrust ];\r\n}\r\n```\r\n\r\nI'm open for all kind of improvements^^\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/mozilla/nixpkgs-mozilla/24)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/comments/312164783","html_url":"https://github.com/mozilla/nixpkgs-mozilla/pull/24#issuecomment-312164783","issue_url":"https://api.github.com/repos/mozilla/nixpkgs-mozilla/issues/24","id":312164783,"user":{"login":"nbp","id":1179566,"avatar_url":"https://avatars2.githubusercontent.com/u/1179566?v=3","gravatar_id":"","url":"https://api.github.com/users/nbp","html_url":"https://github.com/nbp","followers_url":"https://api.github.com/users/nbp/followers","following_url":"https://api.github.com/users/nbp/following{/other_user}","gists_url":"https://api.github.com/users/nbp/gists{/gist_id}","starred_url":"https://api.github.com/users/nbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbp/subscriptions","organizations_url":"https://api.github.com/users/nbp/orgs","repos_url":"https://api.github.com/users/nbp/repos","events_url":"https://api.github.com/users/nbp/events{/privacy}","received_events_url":"https://api.github.com/users/nbp/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T03:22:45Z","updated_at":"2017-06-30T03:22:45Z","body":"I think the next step is to install cross-architecture extensions, even if this does not seems to make sense for rust-analysis.\r\n"}}
{"actor":{"display_login":"nbp"}}