Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use yarn pkg on Mojave/XCode10 #48705

Open
leostera opened this issue Oct 19, 2018 · 3 comments
Open

Can't use yarn pkg on Mojave/XCode10 #48705

leostera opened this issue Oct 19, 2018 · 3 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: darwin Running or building packages on Darwin

Comments

@leostera
Copy link

Issue description

Trying to use the yarn pkg fails to compile node 8.x because this fix nodejs/node-gyp#1454 seemingly hasn't been backported yet.

Steps to reproduce

Install nix-env -i yarn in the newest Mojave with XCode10.

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
these paths will be fetched (133.42 MiB download, 712.15 MiB unpacked):
  /nix/store/01scmjq49fd6z6y7vsm08f5wvsrf6fyl-adv_cmds-osx-10.5.8-locale
  /nix/store/02pr1gcp2m91kqsxgn5djjxjavml079f-cctools-binutils-darwin-wrapper
  /nix/store/07vfnxx511rn24igffaqx99z6hnxq2qf-compiler-rt-5.0.2
  /nix/store/0vv2fkzwxb2gnz5s3bg2v7jqnq2viw2v-gnutar-1.30
  /nix/store/1gyifvq3ifyb3gqmw3kvhfk1ilxfq9cv-gzip-1.9
  /nix/store/1hr9b0k2rrhccyxmhyb2zwjdnfnvc30v-diffutils-3.6
  /nix/store/1kzcs3f5iga3adn7498s1as1b65jlv28-libc++-5.0.2
  /nix/store/1s88bwmv3fygm7b9a4rhn11g9kfxclb6-libssh2-1.8.0
  /nix/store/1vlrhhsqi5g13zsi0ifjw3cjn4m3zj6r-xz-5.2.4
  /nix/store/20sjdwmygm5bma8h5mdm5b8phb4z1yi8-clang-5.0.2
  /nix/store/3cs6apk0b348w9r86a4nbg11r9ms6vj3-bash-interactive-4.4-p23-man
  /nix/store/4mvbjh6b9jjwayxgzr12kfa0x8zdmk2s-curl-7.61.1
  /nix/store/53nysl8bqwxihwzs1pgwka20nf8mbvlp-cctools-binutils-darwin
  /nix/store/6bxjrs5x4hlz149shcpi936lpqsha5g4-Libsystem-osx-10.11.6
  /nix/store/70r5g0j7gy9lsj738ixp1r9j1kjj30sl-llvm-5.0.2-lib
  /nix/store/72n7sjvllgzpd5riivkj5bpnjp9jpdfr-ed-1.14.2
  /nix/store/7513lmsl8cqv7hmvwqgzsmpy47hkp5v8-bash-interactive-4.4-p23-doc
  /nix/store/7fy7r7yiqkfizkcarvnz3136qc9z9nzg-xz-5.2.4-bin
  /nix/store/7l83571b34mmbr1zkxa596vw2wdqxxnh-stdenv-darwin
  /nix/store/8m3h3j9pvhxrp1kwdhfb9q3rfpy8zl4z-gnugrep-3.1
  /nix/store/8pjd3sqalrsn1z84ykmm8iyzck12w2l6-bzip2-1.0.6.0.1-bin
  /nix/store/9jjdslk7znijx8d24n9vzx9cv7fwakm8-nghttp2-1.32.0-lib
  /nix/store/9qpi27nfcv411fs5nhvzhpz5irpx3j5b-coreutils-8.30
  /nix/store/ajw7d0ak1aa19yfv7vjf3p1hpyrnvbdv-expand-response-params
  /nix/store/ax1nsyzmm0vdh7w6v5g3kprnn4iv8kxs-readline-7.0p5
  /nix/store/c4c69v0x6r5vcn6kq6nk46wa8n24ww62-zlib-1.2.11
  /nix/store/dzkfn2azp9w4zv01ilckyp7mjldysifc-gawk-4.2.1
  /nix/store/frkmk9zf3vdkdbh05hlhln8j17srj8fx-bash-4.4-p23
  /nix/store/h75340y0ipsdgbs026jvkj06dd7fkgnk-swift-corefoundation
  /nix/store/hda4czp6xpnlsr6441m2lrjzakpsqvaw-patch-2.7.6
  /nix/store/i4v2msxkyrrn993sv8am1qd4rjq7v3dn-libiconv-osx-10.11.6
  /nix/store/j7qjyrvz8c38qb14x8sqjsqh1gij71l8-clang-wrapper-5.0.2
  /nix/store/jadc6cd11hfy30vzzllq7n4d4krrn2w9-gnumake-4.2.1
  /nix/store/jjkcriikiyza6alrd70950vf0mbgm82r-bash-interactive-4.4-p23-dev
  /nix/store/k8in96pw4n3m423cx9971jvsw6jr2brf-cctools-port-895
  /nix/store/mkcz1mqgfaxi3j2z6qmn7hjchl0000as-libkrb5-1.15.2
  /nix/store/n1hd99r4ly4zxdxi01kccpzd6blw7hh5-clang-5.0.2-lib
  /nix/store/nhgjwilv1qp4g5g5vnwqzns96a4nyh2j-ICU-osx-10.10.5
  /nix/store/nkqyy24gmf1iinsj2ab5al82209j7v70-compiler-rt-5.0.2-dev
  /nix/store/nl1x22qpqa3fx6yq3a14g5rmni648gv1-gnused-4.5
  /nix/store/nmzpb207v4hj1s4pbv0d00z0pyzripd5-bash-interactive-4.4-p23-info
  /nix/store/p9d0sy80sqr4qavrz7847sk5sbrhks5v-bash-interactive-4.4-p23
  /nix/store/qyys9q2hvy8sn11zqcpbfpc8qlp0gxmq-libc++abi-5.0.2
  /nix/store/s5bvdmagbr3k4w2ir5qmy0m2iia3f04f-libffi-3.2.1
  /nix/store/syw0pvrih4ji2rj930ds6nn42b8cy49i-libxml2-2.9.8
  /nix/store/szn1a7pz24vp59vfbz499rq1dcr7jwmw-binutils-2.30
  /nix/store/szsahjnmpv1mfj8n524x3xx37c11app2-findutils-4.6.0
  /nix/store/vnk9gblbkl67xgn30lxxaz3x08dwzvhq-nix-info
  /nix/store/y4sbz118rh0zyyjwfaqgi47fm41x6f9f-pcre-8.42
  /nix/store/yczcniylmd6ac57j22cawvimfj3d574z-bzip2-1.0.6.0.1
  /nix/store/yns8xj4qb2drqvz2b12sxvsgfbz34n4h-openssl-1.0.2p
  /nix/store/yxpyi66rv036f9y5p37hhksp3v22lcm9-ncurses-6.1
  /nix/store/z3xfs1yh7bzalq38r3mn847f8jm059n0-gettext-0.19.8.1
  /nix/store/z54kw7hkcc2xsdgznvqr4aqrkgdbjl9x-gmp-6.1.2
  /nix/store/z99ymqwsn0r00qbjjng9aikxjfjvdkzn-DarwinTools-1
copying path '/nix/store/7513lmsl8cqv7hmvwqgzsmpy47hkp5v8-bash-interactive-4.4-p23-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/6bxjrs5x4hlz149shcpi936lpqsha5g4-Libsystem-osx-10.11.6' from 'https://cache.nixos.org'...
copying path '/nix/store/01scmjq49fd6z6y7vsm08f5wvsrf6fyl-adv_cmds-osx-10.5.8-locale' from 'https://cache.nixos.org'...
copying path '/nix/store/frkmk9zf3vdkdbh05hlhln8j17srj8fx-bash-4.4-p23' from 'https://cache.nixos.org'...
copying path '/nix/store/nmzpb207v4hj1s4pbv0d00z0pyzripd5-bash-interactive-4.4-p23-info' from 'https://cache.nixos.org'...
copying path '/nix/store/3cs6apk0b348w9r86a4nbg11r9ms6vj3-bash-interactive-4.4-p23-man' from 'https://cache.nixos.org'...
copying path '/nix/store/yczcniylmd6ac57j22cawvimfj3d574z-bzip2-1.0.6.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/72n7sjvllgzpd5riivkj5bpnjp9jpdfr-ed-1.14.2' from 'https://cache.nixos.org'...
copying path '/nix/store/8pjd3sqalrsn1z84ykmm8iyzck12w2l6-bzip2-1.0.6.0.1-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/ajw7d0ak1aa19yfv7vjf3p1hpyrnvbdv-expand-response-params' from 'https://cache.nixos.org'...
copying path '/nix/store/dzkfn2azp9w4zv01ilckyp7mjldysifc-gawk-4.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/jadc6cd11hfy30vzzllq7n4d4krrn2w9-gnumake-4.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/nl1x22qpqa3fx6yq3a14g5rmni648gv1-gnused-4.5' from 'https://cache.nixos.org'...
copying path '/nix/store/1gyifvq3ifyb3gqmw3kvhfk1ilxfq9cv-gzip-1.9' from 'https://cache.nixos.org'...
copying path '/nix/store/qyys9q2hvy8sn11zqcpbfpc8qlp0gxmq-libc++abi-5.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/s5bvdmagbr3k4w2ir5qmy0m2iia3f04f-libffi-3.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/1kzcs3f5iga3adn7498s1as1b65jlv28-libc++-5.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/i4v2msxkyrrn993sv8am1qd4rjq7v3dn-libiconv-osx-10.11.6' from 'https://cache.nixos.org'...
copying path '/nix/store/nhgjwilv1qp4g5g5vnwqzns96a4nyh2j-ICU-osx-10.10.5' from 'https://cache.nixos.org'...
copying path '/nix/store/07vfnxx511rn24igffaqx99z6hnxq2qf-compiler-rt-5.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/z3xfs1yh7bzalq38r3mn847f8jm059n0-gettext-0.19.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/nkqyy24gmf1iinsj2ab5al82209j7v70-compiler-rt-5.0.2-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/z54kw7hkcc2xsdgznvqr4aqrkgdbjl9x-gmp-6.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/0vv2fkzwxb2gnz5s3bg2v7jqnq2viw2v-gnutar-1.30' from 'https://cache.nixos.org'...
copying path '/nix/store/9qpi27nfcv411fs5nhvzhpz5irpx3j5b-coreutils-8.30' from 'https://cache.nixos.org'...
copying path '/nix/store/mkcz1mqgfaxi3j2z6qmn7hjchl0000as-libkrb5-1.15.2' from 'https://cache.nixos.org'...
copying path '/nix/store/1hr9b0k2rrhccyxmhyb2zwjdnfnvc30v-diffutils-3.6' from 'https://cache.nixos.org'...
copying path '/nix/store/szsahjnmpv1mfj8n524x3xx37c11app2-findutils-4.6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/yxpyi66rv036f9y5p37hhksp3v22lcm9-ncurses-6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/9jjdslk7znijx8d24n9vzx9cv7fwakm8-nghttp2-1.32.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/yns8xj4qb2drqvz2b12sxvsgfbz34n4h-openssl-1.0.2p' from 'https://cache.nixos.org'...
copying path '/nix/store/hda4czp6xpnlsr6441m2lrjzakpsqvaw-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/y4sbz118rh0zyyjwfaqgi47fm41x6f9f-pcre-8.42' from 'https://cache.nixos.org'...
copying path '/nix/store/1vlrhhsqi5g13zsi0ifjw3cjn4m3zj6r-xz-5.2.4' from 'https://cache.nixos.org'...
copying path '/nix/store/8m3h3j9pvhxrp1kwdhfb9q3rfpy8zl4z-gnugrep-3.1' from 'https://cache.nixos.org'...
copying path '/nix/store/7fy7r7yiqkfizkcarvnz3136qc9z9nzg-xz-5.2.4-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/c4c69v0x6r5vcn6kq6nk46wa8n24ww62-zlib-1.2.11' from 'https://cache.nixos.org'...
copying path '/nix/store/szn1a7pz24vp59vfbz499rq1dcr7jwmw-binutils-2.30' from 'https://cache.nixos.org'...
copying path '/nix/store/n1hd99r4ly4zxdxi01kccpzd6blw7hh5-clang-5.0.2-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/1s88bwmv3fygm7b9a4rhn11g9kfxclb6-libssh2-1.8.0' from 'https://cache.nixos.org'...
copying path '/nix/store/syw0pvrih4ji2rj930ds6nn42b8cy49i-libxml2-2.9.8' from 'https://cache.nixos.org'...
copying path '/nix/store/4mvbjh6b9jjwayxgzr12kfa0x8zdmk2s-curl-7.61.1' from 'https://cache.nixos.org'...
copying path '/nix/store/70r5g0j7gy9lsj738ixp1r9j1kjj30sl-llvm-5.0.2-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/h75340y0ipsdgbs026jvkj06dd7fkgnk-swift-corefoundation' from 'https://cache.nixos.org'...
copying path '/nix/store/k8in96pw4n3m423cx9971jvsw6jr2brf-cctools-port-895' from 'https://cache.nixos.org'...
copying path '/nix/store/z99ymqwsn0r00qbjjng9aikxjfjvdkzn-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/53nysl8bqwxihwzs1pgwka20nf8mbvlp-cctools-binutils-darwin' from 'https://cache.nixos.org'...
copying path '/nix/store/20sjdwmygm5bma8h5mdm5b8phb4z1yi8-clang-5.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/02pr1gcp2m91kqsxgn5djjxjavml079f-cctools-binutils-darwin-wrapper' from 'https://cache.nixos.org'...
copying path '/nix/store/vnk9gblbkl67xgn30lxxaz3x08dwzvhq-nix-info' from 'https://cache.nixos.org'...
copying path '/nix/store/j7qjyrvz8c38qb14x8sqjsqh1gij71l8-clang-wrapper-5.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/ax1nsyzmm0vdh7w6v5g3kprnn4iv8kxs-readline-7.0p5' from 'https://cache.nixos.org'...
copying path '/nix/store/7l83571b34mmbr1zkxa596vw2wdqxxnh-stdenv-darwin' from 'https://cache.nixos.org'...
copying path '/nix/store/p9d0sy80sqr4qavrz7847sk5sbrhks5v-bash-interactive-4.4-p23' from 'https://cache.nixos.org'...
copying path '/nix/store/jjkcriikiyza6alrd70950vf0mbgm82r-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
 - system: `"x86_64-darwin"`
 - host os: `Darwin 18.0.0, macOS 10.14`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.1.3`
 - channels(ostera): `"nixpkgs-19.03pre155614.ac7bf94f6df"`
 - nixpkgs: `/Users/ostera/.nix-defexpr/channels/nixpkgs`
@Ma27 Ma27 added the 6.topic: darwin Running or building packages on Darwin label Oct 19, 2018
@LnL7
Copy link
Member

LnL7 commented Oct 23, 2018

nodejs and yarn build fine from what I can tell, could you post the error.

@steshaw
Copy link
Member

steshaw commented Jan 19, 2019

The trick seems to be override with nodejs 10 or 11 #53820 (comment). I got it working with nodejs-11_x. This way you'll get a binary substitute from the cache too 😀. e.g.

nix-shell -p '(yarn.override { nodejs = nodejs-11_x; })'

Probably nixpkgs should be updated to use a later version of nodejs than 8 by default — something more likely to be in the binary cache. Recently, I tried nix-shell -p yarn and nodejs-8_x failed to be found and also failed to compile. Today, (after updating my channel a few times in the meantime, unfortunately), nix-shell -p yarn seems to be compiling yarn without error so far (but I probably can't wait for this to finish on my machine).

Nix Info

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 18.2.0, macOS 10.14.2`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.2`
 - channels(steshaw): `"nixpkgs-19.03pre166683.088cb13aee0"`
 - nixpkgs: `/Users/steshaw/.nix-defexpr/channels/nixpkgs`

@stale
Copy link

stale bot commented Jun 3, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

4 participants