!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

200 Members
61 Servers

Load older messages


SenderMessageTime
15 Dec 2025
@tomodachi94:matrix.orgTomodachi94 (they/them)https://github.com/NixOS/nixpkgs/issues/47089201:46:46
@tomodachi94:matrix.orgTomodachi94 (they/them)Considering also adding knownVulns for that package on 25.1101:47:04
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @tomodachi94:matrix.org
https://github.com/NixOS/nixpkgs/issues/470892
awesome, merge button clicked
02:18:27
@tomodachi94:matrix.orgTomodachi94 (they/them)Also made a PR for coc-go, I'm going to poke around in some Nix Golang areas to see if anyone wants to maintain it (I'm not a Golang person so I feel that I wouldn't adequately maintain it): https://github.com/NixOS/nixpkgs/issues/47090302:26:50
@tomodachi94:matrix.orgTomodachi94 (they/them) * 02:27:09
@tomodachi94:matrix.orgTomodachi94 (they/them)https://github.com/NixOS/nixpkgs/pull/47091503:33:25
@ghishadow:matrix.orgghishadow joined the room.08:19:16
17 Dec 2025
@emma:rory.gayEmma [it/its]ended up looking back into this, and yeah i figured out what makes it tick03:31:13
@emma:rory.gayEmma [it/its]
npmDeps = pkgs.importNpmLock { npmRoot = ./.; };
npmConfigHook = pkgs.importNpmLock.npmConfigHook;

instead of setting an npmDepsHash (yay, i can drop that file and its scripts now!)

03:32:21
@emma:rory.gayEmma [it/its]and it does massively cut down on build time for rebuilds (notably with a lot of packages on a slower connection)03:34:12
18 Dec 2025
@antifuchs:asf.computerantifuchs joined the room.03:58:29
@antifuchs:asf.computerantifuchs I'm not familiar with pnpm or the nix tooling but I find myself needing to build a thing that uses pnpm (v10) in nix... is there something like importNpmLock or prefetch-yarn-deps for the pnpm ecosystem, or do I have to do the old "set hash to "", rebuild, copy&paste the hash" dance? 04:00:02
@antifuchs:asf.computerantifuchs * I'm not familiar with pnpm or the nix tooling for it but I find myself needing to build a thing that uses pnpm (v10) in nix... is there something like importNpmLock or prefetch-yarn-deps for the pnpm ecosystem, or do I have to do the old "set hash to "", rebuild, copy&paste the hash" dance? 04:00:39
@antifuchs:asf.computerantifuchs * I'm not familiar with pnpm or the nix tooling for it but I find myself needing to build a thing that uses pnpm (v10) in nix... is there something like importNpmLock or prefetch-yarn-deps for the pnpm ecosystem, or do I have to do the old "set hash to "", rebuild, copy&paste the hash" dance? (nixpkgs javascript docs seem to suggest it's only the latter?) 04:01:01
@emma:rory.gayEmma [it/its]i didnt even know about alternatives up until yesterday so... check the build-support folder in nixpkgs i would say?04:25:48
@antifuchs:asf.computerantifuchsYeah, couldn’t find anything in there. Thanks for checking (:04:43:43
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @antifuchs:asf.computer
I'm not familiar with pnpm or the nix tooling for it but I find myself needing to build a thing that uses pnpm (v10) in nix... is there something like importNpmLock or prefetch-yarn-deps for the pnpm ecosystem, or do I have to do the old "set hash to "", rebuild, copy&paste the hash" dance? (nixpkgs javascript docs seem to suggest it's only the latter?)
set hash etc
05:01:53
@antifuchs:asf.computerantifuchsThank you /:13:20:45
23 Dec 2025
@pyrox:pyrox.devdish [Fox/It/She] @Tomodachi94 (they/them) got aws-cdk-cli building and running. Will submit a PR shortly(crediting you as co-author, since my code was started from your gist) 19:22:51
24 Dec 2025
@emma:rory.gayEmma [it/its]hm, is there any way to inject more stuff into the npm config hook, or would i have to disable it and write my own instead?11:51:00
@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

Show newer messages


Back to Room ListRoom Version: 6