!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

189 Members
56 Servers

Load older messages


SenderMessageTime
21 Jul 2025
@amardeeps:matrix.org@amardeeps:matrix.org joined the room.17:37:41
@amardeeps:matrix.org@amardeeps:matrix.org left the room.17:37:50
28 Jul 2025
@hashbangcore:matrix.orgJohn joined the room.08:01:04
8 Aug 2025
@0x4a6f:nixos.dev0x4A6F joined the room.06:57:00
16 Aug 2025
@fugi:fugi.devLyn joined the room.14:25:09
@fugi:fugi.devLyn left the room.14:30:02
29 Aug 2025
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.00:36:22
@philiptaron:matrix.orgPhilip Taron (UTC-8)38325600:36:35
@philiptaron:matrix.orgPhilip Taron (UTC-8)* https://github.com/NixOS/nixpkgs/pull/383256 I'd love to commit this can i get a reviewer00:37:16
@magic_rb:matrix.redalder.orgmagic_rb changed their profile picture.19:29:31
30 Aug 2025
@c0ba1t:matrix.orgCobalt

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however seem to be not really applicable to this step. It also feels like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:26:54
@c0ba1t:matrix.orgCobalt (for context, I'm packaging jaeger-ui and they only include vite and some other deps as devDependencies of the workspace memeber packages/jaeger-ui. The build fails on calling vite in the build script of the workspace memeber as it has a /usr/bin/env node shebang and is unpatched as a consequence of landing in packages/jaeger-ui/node_modules/vite/bin/vite.js.) 20:29:27
@c0ba1t:matrix.orgCobalt *

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however feel like the wrong Phase for this step. It also feels like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:30:54
@c0ba1t:matrix.orgCobalt *

Hey, does anyone know the recommended way to run patchShebangs on the node_modules of workspace members?
The current implementation of buildNpmPackage only runs it once on the top-level node_modules leaving any workspace-level node_modules unpatched. This will lead to build errors if, e.g., the workspace members contain deps with shebangs, like vite.

postInstall doesn't appear to work/ be passed through so I only could get it to work as a buildPhase or configurePhase adjustment. Both of them however feel like the wrong Phase for this step. It also seems like this should be accounted for by buildNpmPackage, especially given one can explicitly specify workspace members.

20:31:06
@c0ba1t:matrix.orgCobalt * (for context, I'm packaging jaeger-ui and they only include vite and some other deps as devDependencies of the workspace member packages/jaeger-ui. The build fails on calling vite in the build script of the workspace member as it has a /usr/bin/env node shebang and is unpatched as a consequence of landing in packages/jaeger-ui/node_modules/vite/bin/vite.js.) 20:31:25
2 Sep 2025
@stephen:crabsin.spacen3tcat joined the room.18:18:22
@stephen:crabsin.spacen3tcat changed their display name from Stephen D to n3tcat.18:28:47
@stephen:crabsin.spacen3tcat hai :3 I'm trying to package an npm package that depends on another npm package that itself downloads a binary. I am building that binary and want to put it into node_modules but I'm finding it's getting blown out. Here's my package.nix: https://github.com/scd31/tileserver-gl/blob/nix/nix/package.nix 18:31:52
@stephen:crabsin.spacen3tcat Wondering if anyone knows the semantics of buildNpmPackage, i.e. where it would be getting removed 18:32:14
@marie:marie.cologneMariehave you tried using preBuild instead of prePatch?18:35:20
@stephen:crabsin.spacen3tcat If I do, then it falls over in the patchPhase with tileserver-gl> npm error request to https://github.com/maplibre/maplibre-native/releases/download/node-v6.2.0/node-v127-linux-x64-Release.tar.gz failed, reason: getaddrinfo EAI_AGAIN github.com 18:37:13
@marie:marie.cologneMarie try npmFlags = [ "--ignore-scripts" ]; 18:40:58
@stephen:crabsin.spacen3tcattrying nw18:41:57
@stephen:crabsin.spacen3tcat* trying now18:41:59
@stephen:crabsin.spacen3tcat* trying now18:42:01
@stephen:crabsin.spacen3tcatoh shit it seems to be doing things18:43:06
@stephen:crabsin.spacen3tcatayyy making progress!18:45:07
@stephen:crabsin.spacen3tcattytyty ily marie18:45:09
@stephen:crabsin.spacen3tcatactually I think I was a big premature. I think that breaks node sqlite18:49:41
@stephen:crabsin.spacen3tcat okay so it's still running but what seems to work is npm rebuild --ignore-scripts follows by the ln -s thing followed by npm rebuild 19:05:02

Show newer messages


Back to Room ListRoom Version: 6