-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pnpm? #79
Comments
A while back I started a separate project for this: https://github.com/adisbladis/pnpm2nix/ |
Perhaps with hard linking we could save some of the duplication penalties, but I think this is already addressed by Nix -- Nix has an optimization feature as well that replaces duplicate files by hard links (e.g. I'm not sure what other concepts I could borrow -- the purpose of btw |
nix-shell -p nodePackages_8_x.pnpm so I think this issue can be closed. It currently fails, but that might be unrelated to
|
issue mentioned at #79 (comment) is fixed |
Closing this, because the corresponding pnpm issue was fixed. |
I just stumbled on https://pnpm.js.org/ - it uses a nice mix of symlinks and hardlinks to install deps, and seems to work properly for most packages.
It actually seems already quite a long way towards nix - the modules are stored separately in a cache and then combined in the project.
Maybe some ideas from there can be used here, or we can add the option to use the nix store in there.
They are using hardlinks to copy the modules in place, so to keep the original modules in the store they should either be mentioned in some file, or the hardlinks should be symlinks.
The text was updated successfully, but these errors were encountered: