!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

193 Members
57 Servers

Load older messages


SenderMessageTime
24 Dec 2025
@c0ba1t:matrix.orgCobalt As in more logic or more packages? 12:05:52
@c0ba1t:matrix.orgCobaltThe latter can be done by patching the source, otherwise there's no known expansion mechanism afaik12:06:18
@emma:rory.gayEmma [it/its]as in, i want to remove packages after the first install run12:12:02
@emma:rory.gayEmma [it/its](in particular, i want to remove sqlite3 under nix builds, and just using jq on the package.json didnt work)12:12:30
@emma:rory.gayEmma [it/its]trying to use npm for this errors out with... an EIA_AGAIN12:14:11
@c0ba1t:matrix.orgCobalt I don't think that will work with the npm config hook. in regards to altering the package.json with jq, iirc this may cause npm to (re)check the lockfile (as the locked dependency graph is changed) which can be an issue. 15:46:52
@pyrox:pyrox.devdish [Fox/It/She]yeah if you change the package.json then it won't match the package-lock.json, so it won't work afaik17:26:38
25 Dec 2025
@emma:rory.gayEmma [it/its]removing sqlite3 from packag-elock.json also didnt work fwiw02:02:19
@c0ba1t:matrix.orgCobalt

To clarify, do you want skip the Installation of an sqlite package or avoid the installed files being present in node_modules?

The first likely requires a patch of the source (package.json + lockfile). The latter could maybe be done in, e. G., preBuild.

06:37:19
@emma:rory.gayEmma [it/its]im trying to skip the installation of sqlite alltogether08:07:51
@emma:rory.gayEmma [it/its]* im trying to skip the installation of sqlite alltogether08:07:59
@emma:rory.gayEmma [it/its]for now i just removed it from the package.json in the repo alltogether with npm (and made the app throw an error if it tries to use sqlite), and it cut down build time by 80%... lol08:08:55
@sandro:supersandro.deSandro 🐧You may also need something like https://github.com/NixOS/nixpkgs/blob/aec8307e9f85c5817135f39d8c388061c1fa620d/pkgs/by-name/up/uptime-kuma/package.nix#L32 for the final package09:02:11
26 Dec 2025
@aktaboot:tchncs.deaktaboot changed their profile picture.19:25:49
28 Dec 2025
@ixxie:matrix.orgixxie set a profile picture.20:05:39
29 Dec 2025
@n3tcat:crabsin.spacen3tcat joined the room.02:21:36
@n3tcat:crabsin.spacen3tcat set a profile picture.02:24:40
@stephen:crabsin.spacen3tcat left the room.02:32:52

There are no newer messages yet.


Back to Room ListRoom Version: 6