svanderburg / node2nix

Generate Nix expressions to build NPM packages
MIT License
519 stars 99 forks source link

Cannot run on macos aarch64-darwin #297

Open CMCDragonkai opened 2 years ago

CMCDragonkai commented 2 years ago

It appears that running nix-shell with the latest node2nix reports:

error: a 'x86_64-linux' with features {} is required to build '/nix/store/3iairhjpfbwrca1jmrmsripzln5ag25q-addintegrityfields.js.drv', but I am a 'aarch64-darwin' with features {benchmark, big-parallel, nixos-test}

And I traced this to:

https://github.com/svanderburg/node2nix/blob/68f5735f9a56737e3fedceb182705985e3ab8799/nix/node-env.nix#L212

It doesn't seem it should need to be limited to x86_64-linux.

arximboldi commented 2 years ago

I've run into this as well. Any workarounds?