Open yakimant opened 1 year ago
Maybe it is introducing new issues though.
Can confirm it does introduce new issues (unfortunately) where you are now impurely using your host system xcode tools (which don't always exist) instead of the nixpkgs ones
I'll see if I can root this out. Can you give me an exact derivation/command to reproduce so I don't have to make my own?
Also to clarify, the paths are hardcoded in that patch because what they are should not matter iirc. It basically pretends xcode is available so node-gyp is happy and thinks it has SDK and CLT available, but it should not actually be using those values anywhere when you try to build for real
But clearly that assumption is wrong then if it's somehow leaking in for you and your build
I think smth like this should help to reproduce:
package.json
:
{
"dependencies": {
"dtrace-provider": "^0.8.8"
}
}
nix-shell --packages nodejs yarn
NODE_DTRACE_PROVIDER_REQUIRE=hard yarn install --verbose
Thanks for confirming the issue!
Oh, you're experiencing this when just running npm
/yarn
plain rather than in a Nix derivation
Yeah we should probably make this patch dependent on whether or not we're in a Nix build I suppose
You could just use /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk
this case, as that symlink points to whateer sdk is installed no matter the version
Yeah we should probably make this patch dependent on whether or not we're in a Nix build I suppose
How would you go about doing that?
Describe the bug
After
nixpkgs
upgrade we started to have a build issue withnode-gyp
fordtrace-provider
:Removing this patch solves the issue: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/web/nodejs/bypass-darwin-xcrun-node16.patch (see https://github.com/NixOS/nixpkgs/pull/193759) Maybe it is introducing new issues though.
On my machine I have the following in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
folder:Steps To Reproduce
We run
yarn install
and packages/lock containdtrace-provider
. But I can come back with proper reproducing steps if needed.Notify maintainers
@marsam, @lilyinstarlight
Metadata