Generate.sh node-packages fails. What are the pre-requisites?

I was looking to propose the inclusion of the package aws-cdk in node-packages.json.

I’m on macOS 11.2.x.

Are there pre-requisites needing to be available for generate.sh to run successfully?
Is it compatible with darwin?

Prior to making any changes I ran the following:

ldeck@casl-dpfwvf2 nixpkgs % (cd pkgs/development/node-packages && ./generate.sh)
these derivations will be built:
  /nix/store/nkcn7crz33phbll04wsm90l6lwhm9jkz-nix-2.3.7.drv
  /nix/store/kxazkncdsdagk469h5y9yidldrldlfdq-node_node2nix-1.8.0.drv
building '/nix/store/nkcn7crz33phbll04wsm90l6lwhm9jkz-nix-2.3.7.drv'...
unpacking sources
unpacking source archive /nix/store/p5zl5vbfg2y5z42px0d6x7wmixacs0n5-nix-2.3.7.tar.xz
source root is nix-2.3.7
setting SOURCE_DATE_EPOCH to timestamp 1594218059 of file nix-2.3.7/src/libexpr/parser-tab.hh
patching sources
configuring
configure flags: --prefix=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7 --bindir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/bin --sbindir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/sbin --includedir=/nix/store/z97dhh7scddl2cmizaxg7lyfjw2vl36z-nix-2.3.7-dev/include --oldincludedir=/nix/store/z97dhh7scddl2cmizaxg7lyfjw2vl36z-nix-2.3.7-dev/include --mandir=/nix/store/6d6i4wg5r4fnindg5q6w4j2q7244rhgw-nix-2.3.7-man/share/man --infodir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/share/info --docdir=/nix/store/7376gadnhb3rz0s89c5hlynk6fvvj575-nix-2.3.7-doc/share/doc/nix --libdir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/lib --libexecdir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/libexec --localedir=/nix/store/832nqaqzmkra9iq6is3fhyjyvhi5745s-nix-2.3.7/share/locale --with-store-dir=/nix/store --localstatedir=/nix/var --sysconfdir=/etc --disable-init-state --enable-gc --disable-seccomp-sandboxing
configure: WARNING: unrecognized options: --disable-init-state
checking for a sed that does not truncate output... /nix/store/a0zcpf8i0cifrhc4hnp39lzjx03mq3h2-gnused-4.8/bin/sed
checking build system type... x86_64-apple-darwin20.3.0
checking host system type... x86_64-apple-darwin20.3.0
checking for the canonical Nix system name... x86_64-darwin
checking for gcc... clang
checking whether the C compiler works... no
configure: error: in `/private/tmp/nix-build-nix-2.3.7.drv-0/nix-2.3.7':
configure: error: C compiler cannot create executables
See `config.log' for more details
builder for '/nix/store/nkcn7crz33phbll04wsm90l6lwhm9jkz-nix-2.3.7.drv' failed with exit code 77
cannot build derivation '/nix/store/kxazkncdsdagk469h5y9yidldrldlfdq-node_node2nix-1.8.0.drv': 1 dependencies couldn't be built
error: build of '/nix/store/kxazkncdsdagk469h5y9yidldrldlfdq-node_node2nix-1.8.0.drv' failed

Any suggestions?

That command should be sufficient but it looks like your Nixpkgs repository is in a weird state – it has an old version of Nix that cannot be built for some reason so it is not in binary cache. I would recommend checking out master and pulling latest changes since otherwise you will get merge conflicts in your pull request anyway.

Ah yes, right you are @jtojnar . Thanks.
Out of interest, how much disk space is required to run generate.sh and how long would it typically take to run?