!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
4 Aug 2023
@lily:lily.flowersLily Foster
In reply to @raitobezarius:matrix.org
I remember roughly we had discussions about it with Lily Foster a long time ago
We did? šŸ‘€
13:37:21
@lily:lily.flowersLily FosterI have no memory of that (but that's not that surprising...)13:37:31
@raitobezarius:matrix.orgraitobezariusI remember we had the discussions on the closure size of nodejs-slim vs nodejs13:37:33
@raitobezarius:matrix.orgraitobezariusmaybe in NixOS and not Nix NodeJS13:37:38
@gdamjan:spodeli.orggdamjan
In reply to @lily:lily.flowers
Does -slim include headers?
it does. I've tried removing them in some post* hook, didn't change the deps
13:37:46
@lily:lily.flowersLily FosterNix why depends can tell you the exact files with the reference iirc13:38:15
@lily:lily.flowersLily FosterSo knowing which files may help13:38:20
@gdamjan:spodeli.orggdamjanlet me see,first time I hear about nix why-depends :D13:39:20
@lily:lily.flowersLily FosterMaybe it's pkg-config files though?13:39:22
@lily:lily.flowersLily FosterNodejs doesn't have a dev output right now, correct?13:39:41
@lily:lily.flowersLily FosterIf it did, headers and pkg config files and such would go to it13:39:51
@lily:lily.flowersLily FosterSo maybe it should if that's why13:40:01
@gdamjan:spodeli.orggdamjan

maybe I'm using this wrong:

# nix why-depends nixpkgs#nodejs-slim nixpkgs#openssl.dev
/nix/store/5vm8fh4q21xlk7i1y6rqykqar296dglr-nodejs-slim-18.16.1
<E2><94><94><E2><94><80><E2><94><80><E2><94><80>/nix/store/l0vnx3ik63qrlj086gq06fjmalsi5dpy-openssl-3.0.9-dev

?

13:43:08
@gdamjan:spodeli.orggdamjanlet me try a real VM :/13:45:12
@lily:lily.flowersLily FosterIt's a flag i think. By default it just shows the chain of derivation/outpath references13:45:12
@lily:lily.flowersLily FosterIf I wasn't on mobile abd at $dayjob I'd check myself13:45:38
@lily:lily.flowersLily Foster* If I wasn't on mobile and at $dayjob I'd check myself13:45:44
@gdamjan:spodeli.orggdamjansure - take care :D13:45:59
@lily:lily.flowersLily Foster(I mean I work for a state government in the US and it's a friday -- I can be on mobile, it's not like I'm getting much done anyway šŸ˜…)13:46:39
@gdamjan:spodeli.orggdamjan--precise13:46:41
@gdamjan:spodeli.orggdamjan is there a way to tell it not to shorten strings like this bin/node: ….46.0-dev/include", "/nix/store/l0vnx3ik63qrlj086gq06fjmalsi5dpy-openssl-3.0.9-dev/include", "/n… ? 13:48:17
@lily:lily.flowersLily Foster
In reply to @gdamjan:spodeli.org
is there a way to tell it not to shorten strings like this bin/node: ….46.0-dev/include", "/nix/store/l0vnx3ik63qrlj086gq06fjmalsi5dpy-openssl-3.0.9-dev/include", "/n… ?
Hmmmmm not sure. Also why would the include paths be embedded in the binary????
13:49:09
@lily:lily.flowersLily FosterUnless it's wrapped and that's a wrapper. I forget if it's wrapped13:49:25
@gdamjan:spodeli.orggdamjan /nix/store/5vm8fh4q21xlk7i1y6rqykqar296dglr-nodejs-slim-18.16.1/bin/node is 45M … seems like the real deal :D 13:50:28
@gdamjan:spodeli.orggdamjanok thanks for why-depends, let me make some experiments13:51:16
@lily:lily.flowersLily Foster
In reply to @gdamjan:spodeli.org
/nix/store/5vm8fh4q21xlk7i1y6rqykqar296dglr-nodejs-slim-18.16.1/bin/node is 45M … seems like the real deal :D
Damn, I wonder if it just doesn't have LTO or anything on it. Highly templated C++ stuff can explode in size for sure, especially without that
13:52:24
@lily:lily.flowersLily FosterBut 45 MB is a lot...13:52:32
@gdamjan:spodeli.orggdamjan/usr/bin/node is 39M on Arch … I guess a static library or two difference?!13:53:35
@lily:lily.flowersLily FosterMaybe13:55:39
@gdamjan:spodeli.orggdamjanthis is gonna compile for a while …13:56:33

Show newer messages


Back to Room ListRoom Version: 6