[Nix-dev] Simplify node packages?

Maarten Hoogendoorn maarten at moretea.nl
Tue Apr 25 12:11:11 CEST 2017


I've been working with zimbatim and manveru on a yarn2nix as well, see
https://github.com/moretea/yarn2nix

I'm not actively using it myself though. I would be interested in planning
a few hours to hack on this together ;)

2017-04-25 10:37 GMT+02:00 Profpatsch <mail at profpatsch.de>:

> On 17-04-25 08:20am, Benno Fünfstück wrote:
> > If we get upstream to support enough for our use case, the solution
> should
> > be much more stable.
>
> Upstream support might be helpful,
> but that’s a wholly different beast.
>
> > Hmm, so perhaps in we can unpack the tarballs already in `phase 1` and
> tell
> > yarn to just look in $DIR for unpacked tarballs? Yarn should already have
> > most of the code that is required for correct symlinking, no?
>
> The code for correct symlinking is <4 lines,
> maybe a few more for manpages and binaries.
>
> I’d argue integrating it into yarn is even more frickle:
> 1. With yarn there’s now two implementations of npm packages.
> 2. We have to invest into lobbying so our integration
>    isn’t broken by upstream sometimes. Then lobby again.
> 3. You’d definitely have to change yarn to have
>    an offline mode where it doesn’t try to download stuff.
>    I’m pretty sure upstream doesn’t care about that very much.
>
> These are the problem points I see.
>
> --
> Proudly written in Mutt with Vim on NixOS.
> Q: Why is this email five sentences or less?
> A: http://five.sentenc.es
> May take up to five days to read your message. If it’s urgent, call me.
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170425/68973bc9/attachment.html>


More information about the nix-dev mailing list