nix-community / yarn2nix

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

moretea' mkYarnPackage is incompatible with currently generated yarn.nix #155

Open chekoopa opened 4 years ago

chekoopa commented 4 years ago

After #148 default.nix example became irrelevant, as when we try using yarn2nix-moretea.mkYarnPackage with yarn.nix generated with the current version (37c3b7c, considering a fix from #75), it fails with the next message:

error: anonymous function at <...>/yarn.nix:1:1 called without required argument 'fetchgit', at /nix/store/zzfciaizwx8i9b8vqv43xqg4mif3pnd2-yarn2nix/default.nix:24:13

Even after some crufting with parameters it proceeds to Yarn, which fails to access any package from offline cache.

zimbatm commented 4 years ago

/cc @adrian-gierakowski @phryneas

phryneas commented 4 years ago

Sorry, I haven't used yarn2nix in over a year, no idea what is happening there.

chekoopa commented 4 years ago

The only possible solution ATM I've considered is pinning my yarn2nix fetch to 70666fc and using it as usual. The release version (yarn2nix-moretea) is far too outdated and doesn't support duplicates.

Sorry, I haven't used yarn2nix in over a year, no idea what is happening there.

If you've got an alternative, please write about it. Yet, the mentioned yarn2fix revision (without #148) is rather enough for common usage.

yaitskov commented 3 years ago

Hi. I just noticed that mkYarnPackage disappeared. Is this repo archived? Should I use node2nix? What is alternative, I start from scratch?