!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
60 Servers

Load older messages


SenderMessageTime
4 Aug 2023
@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
@lily:lily.flowersLily FosterYep, good luck 🫠13:57:14
@gdamjan:spodeli.orggdamjantime enough to clean my bike :P13:58:06
@lily:lily.flowersLily FosterYeah, probably. Have fun with that13:58:50
@lily:lily.flowersLily FosterI wish marsam was on Matrix since they usually do most of the nodejs derivation maintenance and can probably speak a lot more intelligently on it. I just do the ecosystem tooling mostly13:59:47
@gdamjan:spodeli.orggdamjandiscourse then?14:01:15
@lily:lily.flowersLily Foster
In reply to @gdamjan:spodeli.org
discourse then?
Yeah they are on discourse and can probably be asked there. Ping me on the post too if you make one so it automatically subscribes me to notifs
14:02:08
@gdamjan:spodeli.orggdamjansome more input …19:56:29
@gdamjan:spodeli.orggdamjan the bin/node: ….46.0-dev/include", "/nix/store/l0vnx3ik63qrlj086gq06fjmalsi5dpy-openssl-3.0.9-dev/include", "/n… that why-depends reports seems to referring to:
/nix/store/3sj7ka634hlvdmywr9nndffvk9hiw247-libuv-1.46.0-dev
19:57:17
@gdamjan:spodeli.orggdamjan

also running strings on ./result/bin/node there's this:

{ "target_defaults": {"cflags": [], "default_configuration": "Release", "defines": ["NODE_OPENSSL_CONF_NAME=nodejs_conf", "ICU_NO_USER_DATA_OVERRIDE"], "include_dirs": ["/nix/store/0rnx7rc87hwkbrhsys7mgwq4jw6pz7ma-zlib-1.2.13-dev/include", "/nix/store/3sj7ka634hlvdmywr9nndffvk9hiw247-libuv-1.46.0-dev/include", "/nix/store/l0vnx3ik63qrlj086gq06fjmalsi5dpy-openssl-3.0.9-dev/include", "/nix/store/db79xky20dvsvs5546ffpv5db70yjlxq-icu4c-73.2-dev/include"], "libraries": ["-L/nix/store/5p62fc7h9ij36fqsxlbq73mbwdhnmbkv-zlib-1.2.13/lib", "-lz", "-L/nix/store/c70parvipldqrfip3cmdq6xdxrpk2scd-libuv-1.46.0/lib", "-luv", "-L/nix/store/xal21vd4d9nfwjkcvw0fyq6ivsbxg1pz-openssl-3.0.9/lib", "-lcrypto", "-lssl", "-L/nix/store/6i4vwgsiqp8jd8pb8cgf99sx8081rmsj-icu4c-73.2/lib", "-licui18n", "-licuuc", "-licudata"]},
19:57:57
@gdamjan:spodeli.orggdamjanI don't think that's something easy to fix :/20:00:53
@lily:lily.flowersLily FosterOf course they embed that in the binary...20:52:36
@lily:lily.flowersLily Foster I mean if string never is actually needed if you can't build against slim anyway or something, you could use nuke-references (or whatever it is called) on it for those dev inputs... 20:53:35
@lily:lily.flowersLily Foster(Apologies that I only mostly have questionable ideas)20:54:00
@gdamjan:spodeli.orggdamjan I can't even say if the idea is questionable :)21:39:52
5 Aug 2023
@gdamjan:spodeli.orggdamjanis there documentation on nuke-references?16:39:48
@lily:lily.flowersLily FosterI hope there is in the nixpkgs manual. It might be nuke-references-to. I may be misremembering the name16:40:17
@lily:lily.flowersLily Foster
In reply to @gdamjan:spodeli.org
is there documentation on nuke-references?
Looks like it's nukeReferences is the derivation and it's nuke-refs [-e ref-to-keep]* [files-to-remove-all-non-kept-references-from]
16:46:33

Show newer messages


Back to Room ListRoom Version: 6