nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

Local dependencies #122

Open spinus opened 4 years ago

spinus commented 4 years ago

I have two yarn packages that I develop locally. I want to add one as dependeny to the other. What I have done so far, is I added yarn2nix mkYarnPackage to both of them.

In package.json of master one, I have entry "mypackage": "file:../otherpackage" in package.json. I have added "workspaceDependencies": [(import ./../otherpacage {})] to mkYarnPackage expression. I'm getting an error: "Couldn't find the binary git" from yarn during master package built. I tried to add buildInputs or propagatedBuiltInputs to pkgs.yarn itself (overrideAttrs) but didn't help.

I don't fully understand why it tries to use git at all (it looks like it cannot figure out the local package and tries to use git to do something)

I'm not sure how to properly add this local dependency to master package, is there any way currently?