nix-community / yarn2nix

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

Yarn.lock argument #6

Closed zimbatm closed 7 years ago

zimbatm commented 7 years ago

Hey,

this isn't working for my package yet but I wanted to get the idea across.

In my ideal world, developers can just install yarn and not be forced to use nix (yet) to update the package.nix in sync.

moretea commented 7 years ago

I thought about doing something similar to this, but thought that this would require an impure function. But I guess that you're quite right, and that this should work as well.

zimbatm commented 7 years ago

@moretea the PR has expanded a bit in scope but doesn't change the project fundamentally. Do you mind merging the existing changes?

zimbatm commented 7 years ago

I have a second branch where I tried moving the unpack phase into nix but that didn't go well because yarn does more than just unpacking.

moretea commented 7 years ago

Done! We could/should talk a bit at FOSDEM about how we should continue with this. I won't have time to work on this this week unfortunately