Open uPaymeiFixit opened 4 months ago
Hmm..
nix shell 'nixpkgs#nodejs_20' -c npm install node-rdkafka
added 4 packages in 53s
npm notice
npm notice New minor version of npm available! 10.5.0 -> 10.8.2
npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
npm notice Run npm install -g npm@10.8.2 to update!
npm notice
@khaneliman hmm indeed... Did you run this from an M1 or M2 mac?
@khaneliman hmm indeed... Did you run this from an M1 or M2 mac?
M1
That's interesting. I have a friend who is also able to reproduce it.
Can you try running node -p require("node-rdkafka")
within the nix shell?
I was able to get node-rdkafka installed by installing gcc and llvm via nix, but when I required it I ran into other issues.
Just got the error today, I think it's related to xcode dev tools and not sandboxed on darwin. I would assume we just need to properly provide those binaries in the derivation...
Describe the bug
When running a native package, for example
node-rdkafka
, I get a failure to build. It seems this is because nodejs_20 is built using a nix-provided gcc instead of the one shipped with Xcode.Steps To Reproduce
nix shell 'nixpkgs#nodejs_20' -c npm install node-rdkafka
Expected behavior
Package should install correctly
Screenshots
Additional context
If I use a version of node from outside of nix (for example, nvm), it works correctly.
Notify maintainers
@cillianderoiste @cko
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a :+1: reaction to issues you find important.