{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/25976","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/25976/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/25976/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/25976/events","html_url":"https://github.com/NixOS/nixpkgs/pull/25976","id":230240906,"number":25976,"title":"Add `*Platform.is*` predicates and alias `stdenv.is*` to `hostPlatform`'s","user":{"login":"Ericson2314","id":1055245,"avatar_url":"https://avatars0.githubusercontent.com/u/1055245?v=3","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[{"id":443329087,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20cross-compilation","name":"6.topic: cross-compilation","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-05-21T19:06:21Z","updated_at":"2017-05-22T19:56:36Z","closed_at":"2017-05-22T17:30:20Z","pull_request":{"url":"https://api.github.com/repos/NixOS/nixpkgs/pulls/25976","html_url":"https://github.com/NixOS/nixpkgs/pull/25976","diff_url":"https://github.com/NixOS/nixpkgs/pull/25976.diff","patch_url":"https://github.com/NixOS/nixpkgs/pull/25976.patch"},"body":"###### Motivation for this change\r\n\r\nAs discussed in https://github.com/NixOS/nixpkgs/issues/14965, The old notation is vague on which platform is being inspected. Worse, users probably mean the host platform, but in fact are inspecting the build platform.\r\n\r\nThis PR doesn't actually replace the old notation, but sets everything up so a simple/stupid replace can be done as a follow-up:\r\n\r\n - `*Platform.is*` shorthand is now defined\r\n - `stdenv.is*` is just taken from `hostPlatform.is*`\r\n\r\nAlso infer `{build,host,target}.libc`, which is a first step for the ideas in https://github.com/NixOS/nixpkgs/issues/6221\r\n\r\nCC @vcunat @copumpkin \r\n\r\n[@kmicklas Your branch we paired on the other day should be rebased on this one, once it's merged. (Otherwise will be lots of merge conflicts.)]\r\n\r\n###### Things done\r\n\r\n~~No hashes should be changed; need to check that.~~ I assume cause travis completed there was no-mass rebuild.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/303203327","html_url":"https://github.com/NixOS/nixpkgs/pull/25976#issuecomment-303203327","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/25976","id":303203327,"user":{"login":"matthewbauer","id":19036,"avatar_url":"https://avatars3.githubusercontent.com/u/19036?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewbauer","html_url":"https://github.com/matthewbauer","followers_url":"https://api.github.com/users/matthewbauer/followers","following_url":"https://api.github.com/users/matthewbauer/following{/other_user}","gists_url":"https://api.github.com/users/matthewbauer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewbauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewbauer/subscriptions","organizations_url":"https://api.github.com/users/matthewbauer/orgs","repos_url":"https://api.github.com/users/matthewbauer/repos","events_url":"https://api.github.com/users/matthewbauer/events{/privacy}","received_events_url":"https://api.github.com/users/matthewbauer/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T19:56:36Z","updated_at":"2017-05-22T19:56:36Z","body":"> build/host/target is a GNU thing (autotools, binutils, gcc)\r\n\r\nOkay, forgive my ignorance on this.\r\n\r\nFor those out of the loop here's from the GCC manual:\r\n\r\n>There are three system names that the build knows about: the machine you are building on (build), the machine that you are building for (host), and the machine that GCC will produce code for (target).\r\n>\r\n>If build, host, and target are all the same, this is called a native. If build and host are the same but target is different, this is called a cross. If build, host, and target are all different this is called a canadian (for obscure reasons dealing with Canada’s political party and the background of the person working on the build at that time). If host and target are the same, but build is different, you are using a cross-compiler to build a native for a different system. Some people call this a host-x-host, crossed native, or cross-built native. If build and target are the same, but host is different, you are using a cross compiler to build a cross compiler that produces code for the machine you’re building on. This is rare, so there is no common way of describing it. There is a proposal to call this a crossback.\r\n\r\nhttps://gcc.gnu.org/onlinedocs/gccint/Configure-Terms.html"}}
{"actor":{"display_login":"matthewbauer"}}