{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/4855","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/4855/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/4855/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/4855/events","html_url":"https://github.com/NixOS/nixpkgs/issues/4855","id":47948746,"number":4855,"title":"Rename nativeBuildInputs","user":{"login":"edolstra","id":1148549,"avatar_url":"https://avatars.githubusercontent.com/u/1148549?v=3","gravatar_id":"","url":"https://api.github.com/users/edolstra","html_url":"https://github.com/edolstra","followers_url":"https://api.github.com/users/edolstra/followers","following_url":"https://api.github.com/users/edolstra/following{/other_user}","gists_url":"https://api.github.com/users/edolstra/gists{/gist_id}","starred_url":"https://api.github.com/users/edolstra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edolstra/subscriptions","organizations_url":"https://api.github.com/users/edolstra/orgs","repos_url":"https://api.github.com/users/edolstra/repos","events_url":"https://api.github.com/users/edolstra/events{/privacy}","received_events_url":"https://api.github.com/users/edolstra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/documentation","name":"documentation","color":"fef2c0"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/mass-rebuild","name":"mass-rebuild","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/7","html_url":"https://github.com/NixOS/nixpkgs/milestones/16.03","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/milestones/7/labels","id":1055044,"number":7,"title":"16.03","description":"","creator":{"login":"thoughtpolice","id":3416,"avatar_url":"https://avatars.githubusercontent.com/u/3416?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtpolice","html_url":"https://github.com/thoughtpolice","followers_url":"https://api.github.com/users/thoughtpolice/followers","following_url":"https://api.github.com/users/thoughtpolice/following{/other_user}","gists_url":"https://api.github.com/users/thoughtpolice/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtpolice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtpolice/subscriptions","organizations_url":"https://api.github.com/users/thoughtpolice/orgs","repos_url":"https://api.github.com/users/thoughtpolice/repos","events_url":"https://api.github.com/users/thoughtpolice/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtpolice/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":0,"state":"open","created_at":"2015-04-06T19:40:15Z","updated_at":"2015-08-26T22:30:38Z","due_on":null,"closed_at":null},"comments":18,"created_at":"2014-11-06T10:52:13Z","updated_at":"2015-08-27T08:46:00Z","closed_at":null,"body":"We currently have the confusing situation that the `buildInputs` attribute gets passed to the builder via the `nativeBuildInputs` environment variable:\r\n```\r\n$ nix-shell '<nixpkgs>' -A pan\r\n[nix-shell:~]$ echo $buildInputs \r\n\r\n[nix-shell:~]$ echo $nativeBuildInputs \r\n/nix/store/aprw7bdaydpxcv6j3wlr9bnr2s061gq6-pkg-config-0.23 /nix/store/75kv0ac0zn6sxypqh4anwwfdmm3bcw35-gtk+-2.24.24 ...\r\n```\r\n(Pan declares a `buildInputs` attribute.)\r\n\r\nAlso, \"native\" is somewhat ambiguous: native to the build machine, or native to the target machine? However the GNU terminology (`build` and `host`) is not really better.\r\n\r\nMaybe it would be better to always use `buildInputs` for the native (build machine) dependencies, and something like `targetBuildInputs` for the cross-built dependencies. Or not use `buildInputs` in setup.sh at all and use `nativeBuildInputs` and `targetBuildInputs` to prevent confusion.\r\n\r\nPing @viric"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/135342913","html_url":"https://github.com/NixOS/nixpkgs/issues/4855#issuecomment-135342913","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/4855","id":135342913,"user":{"login":"lethalman","id":480920,"avatar_url":"https://avatars.githubusercontent.com/u/480920?v=3","gravatar_id":"","url":"https://api.github.com/users/lethalman","html_url":"https://github.com/lethalman","followers_url":"https://api.github.com/users/lethalman/followers","following_url":"https://api.github.com/users/lethalman/following{/other_user}","gists_url":"https://api.github.com/users/lethalman/gists{/gist_id}","starred_url":"https://api.github.com/users/lethalman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lethalman/subscriptions","organizations_url":"https://api.github.com/users/lethalman/orgs","repos_url":"https://api.github.com/users/lethalman/repos","events_url":"https://api.github.com/users/lethalman/events{/privacy}","received_events_url":"https://api.github.com/users/lethalman/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T08:46:00Z","updated_at":"2015-08-27T08:46:00Z","body":"@bjornfor that doesn't change much the current state, you put everything in buildInputs instead of having two sets, but that's it.\r\n\r\n@dezgeg it does, because `bison` will always be used as host dependency, and `glib` always as target dependnecy."}}