{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/53424","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/53424/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/53424/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/53424/events","html_url":"https://github.com/NixOS/nixpkgs/issues/53424","id":396091538,"node_id":"MDU6SXNzdWUzOTYwOTE1Mzg=","number":53424,"title":"closures of cross packages include build packages","user":{"login":"goertzenator","id":605072,"node_id":"MDQ6VXNlcjYwNTA3Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/605072?v=4","gravatar_id":"","url":"https://api.github.com/users/goertzenator","html_url":"https://github.com/goertzenator","followers_url":"https://api.github.com/users/goertzenator/followers","following_url":"https://api.github.com/users/goertzenator/following{/other_user}","gists_url":"https://api.github.com/users/goertzenator/gists{/gist_id}","starred_url":"https://api.github.com/users/goertzenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goertzenator/subscriptions","organizations_url":"https://api.github.com/users/goertzenator/orgs","repos_url":"https://api.github.com/users/goertzenator/repos","events_url":"https://api.github.com/users/goertzenator/events{/privacy}","received_events_url":"https://api.github.com/users/goertzenator/received_events","type":"User","site_admin":false},"labels":[{"id":443329087,"node_id":"MDU6TGFiZWw0NDMzMjkwODc=","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":1,"created_at":"2019-01-04T22:40:36Z","updated_at":"2019-01-04T22:42:53Z","closed_at":"2019-01-04T22:42:52Z","author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nA closure for a cross compiled packages includes all the build packages:\r\n\r\n```\r\n$ nix build -f channel:nixos-unstable pkgsCross.raspberryPi.hello\r\n$ nix-store -qR result\r\n/nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27\r\n/nix/store/xiypl4ghzm03dmss75kgzf2l4c8lz06g-attr-2.4.47\r\n/nix/store/7q93f42w9snblrim7qqly9rkk57j9hhv-acl-2.2.52\r\n/nix/store/0q4i5ll9gxs6giq7kqkniww934j9j8dk-coreutils-8.30\r\n/nix/store/x6inizi5ahlyhqxxwv1rvn05a25icarq-gcc-7.3.0-lib\r\n/nix/store/9yb6gizxpll4l6gf7md75kbii6b1dvjc-gmp-6.1.2\r\n/nix/store/1pzd4h9ixc4z61zys4rf7jxhwzrcyzwj-gmp-6.1.2-dev\r\n/nix/store/22lrlr8d1d0dymy29jfpgmksfx1p5kc6-glibc-2.27-bin\r\n/nix/store/nsrwlly5ikwhppcslaazp547kh7q7j6s-zlib-1.2.11\r\n/nix/store/c90akqjk2lk9r18wvxnkvd07j2nnl3f1-linux-headers-4.18.3\r\n/nix/store/psqblh5bsgkbkhn4r648pgjw5rq4npkv-glibc-2.27-dev\r\n/nix/store/p7j7qg5cri229ihf8nllwjhzgbvgx5d0-gcc-7.3.0\r\n/nix/store/2nrwba2rahwka6pz6354xza1mnb1dd5v-armv6l-unknown-linux-gnueabihf-stage-static-gcc-debug-7.3.0-lib\r\n/nix/store/a50sg2xm6vflzx5kma3sih39dq9wv7z6-zlib-1.2.11-dev\r\n/nix/store/3hrh50f5gqxg2hi9aczmswwvx7k7m040-armv6l-unknown-linux-gnueabihf-binutils-2.30\r\n/nix/store/5kqyp2ipi39r7j50ri2lh4ikkw3f6ypw-expand-response-params\r\n/nix/store/can00lfiynqkbsdkkmgp6qg8p8w92cxa-bash-4.4-p23\r\n/nix/store/9094wvfc40rgnszk8r31l6vvr1ahg9hb-armv6l-unknown-linux-gnueabihf-binutils-wrapper-2.30\r\n/nix/store/vn8g3p4rn8xbqmwzfs5ic2pmzldaijss-mpfr-4.0.1\r\n/nix/store/a8fx8f5cwr8n9rzms700pabr30w23amz-libmpc-1.1.0\r\n/nix/store/bvn1405cf45bs3il2f4mncwjxnjgrpkw-isl-0.17.1\r\n/nix/store/ij6ygcnk6qmymaa4p6f2d54dxygpl5hm-linux-headers-4.18.3\r\n/nix/store/nsggkr1m85mqdifrbddb7pmvgs2jjp73-mpfr-4.0.1-dev\r\n/nix/store/zk2g34m3bdya2v7vxaqapmb2v49ihqlc-armv6l-unknown-linux-gnueabihf-stage-static-gcc-debug-7.3.0\r\n/nix/store/hs5nhrhy9i1g0mzjss9pyamxacsc46jz-glibc-2.27-armv6l-unknown-linux-gnueabihf\r\n/nix/store/kviifpyj4n081avgh0rmns3rmmz8p2rd-hello-2.10-armv6l-unknown-linux-gnueabihf\r\n```\r\nCross-compiled closures are useful for deploying to compact embedded systems, so bringing all this baggage is a show stopper.  For reference, a non-cross compiled package has minimal dependencies:\r\n```\r\n$ nix build -f channel:nixos-unstable hello\r\n$ nix-store -qR result\r\n/nix/store/xdsjx0gba4id3yyqxv66bxnm2sqixkjj-glibc-2.27\r\n/nix/store/85s7px3vlr8adrk200292y7rxpdnzs4j-hello-2.10\r\n```\r\n\r\n## Technical details\r\n\r\nPlease run `nix-shell -p nix-info --run \"nix-info -m\"` and paste the\r\nresults.\r\n```\r\n - system: `\"x86_64-linux\"`\r\n - host os: `Linux 4.14.87, NixOS, 18.09.1625.b352d47e42b (Jellyfish)`\r\n - multi-user?: `yes`\r\n - sandbox: `yes`\r\n - version: `nix-env (Nix) 2.1.3`\r\n - channels(root): `\"nixos-18.09.1625.b352d47e42b, unstable-18.03pre130569.7a04c2ca296\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`\r\n```\r\n"}}
{"actor":{"display_login":"FRidh"}}