[Nix-dev] Simplify node packages?

Domen Kožar domen at dev.si
Tue Apr 25 14:49:48 CEST 2017


We (IOHK) are going to use yarn2nix in the future as well.

Maybe we could have a call where things stand and how to proceed?

On Tue, Apr 25, 2017 at 12:11 PM, Maarten Hoogendoorn <maarten at moretea.nl>
wrote:

> 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
>>
>
>
> _______________________________________________
> 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/d9f7147f/attachment.html>


More information about the nix-dev mailing list