Open sir4ur0n opened 1 year ago
@sir4ur0n you might want to try https://github.com/madjam002/yarnpnp2nix as it seems like it supports conditions
Or you could port the implementation to here
I ran into this problem as well (see the linked issue above), and I don't really know what changed, but it works with Yarn v4 for me!
supportedArchitectures:
os: [linux, darwin, win32]
cpu: [x64, arm64]
See https://github.com/catppuccin/vscode/pull/215, ef47700
failed, but adding supportedArchitectures
fixed it for me.
Hi,
I recently tried to migrate the VS Code extension build of Nickel to use yarn-plugin-nixify. As you can see, the build succeeds for Linux but fails for Darwin OSes.
By looking into
yarn.lock
we see the following aboutfsevents
:Notice the
conditions: os=darwin
, and thefsevents@patch:fsevents@~2.3.1#~builtin<compat/fsevents>
package.But to my surprise, when we look into the generated
yarn-project.nix
:darwin
fsevents@npm:2.3.2
is present, the other one is absent!So I guess I have 3 questions :sweat_smile:
fsevents@patch:fsevents@~2.3.1#~builtin<compat/fsevents>
present in the generatedyarn-project.nix
file?I searched in the documentation, code and issues, but with poor results :disappointed: The only part that looks interesting is in
generate.ts
functioncollectTree
: https://github.com/stephank/yarn-plugin-nixify/blob/main/src/generate.ts#L149but that does not help me understand what I should do to make this work.
Please let me know if I can provide any additional information to help investigate!