| 22 Dec 2022 |
Winter (she/her) | In reply to @aktaboot:tchncs.de
Winter (she/her) no, It is pulling a different version of esbuild
error /build/source/node_modules/esbuild: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /build/source/node_modules/esbuild
Output:
/build/source/node_modules/esbuild/install.js:81
throw new Error(`Expected ${JSON.stringify(version)} but got ${JSON.stringify(stdout)}`);
^
Error: Expected "0.9.7" but got "0.16.7"
at validateBinaryVersion (/build/source/node_modules/esbuild/install.js:81:11)
at installDirectly (/build/source/node_modules/esbuild/install.js:191:5)
at installOnUnix (/build/source/node_modules/esbuild/install.js:221:5)
at Object.<anonymous> (/build/source/node_modules/esbuild/install.js:248:3)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
you'll need to pull that version then | 17:25:35 |
Winter (she/her) | and use that instead | 17:25:40 |
aktaboot | I am not sure how to do that with nix | 17:28:15 |
Winter (she/her) | In reply to @aktaboot:tchncs.de I am not sure how to do that with nix you can do this: https://github.com/NixOS/nixpkgs/blob/04f574a1c0fde90b51bf68198e2297ca4e7cccf4/pkgs/applications/networking/instant-messengers/deltachat-desktop/default.nix#L37 | 17:29:30 |
aktaboot | moved some more general nix-question to main room | 18:18:08 |
| 25 Dec 2022 |
| @ahsmha:matrix.org left the room. | 10:36:37 |
| 6 Jan 2023 |
| Linus joined the room. | 00:56:31 |
| Lily Foster joined the room. | 01:14:07 |
| zebrag joined the room. | 01:24:04 |
| 7 Jan 2023 |
| aktaboot changed their profile picture. | 20:27:20 |
| 9 Jan 2023 |
| @adis:blad.is left the room. | 06:27:07 |
| 12 Jan 2023 |
| stroem - sourcegraph joined the room. | 20:43:46 |
stroem - sourcegraph | How do I set the nodejs used by a package in nixpkgs.nodePackages? Ive tried .override { nodejs = pkgs.nodejs_16-x; } but thats not doing the job | 20:55:28 |
stroem - sourcegraph | nodejs-16_x.pkgs.pnpm doesnt add pnpm to path like nodePackages.pnpm does | 21:01:34 |
stroem - sourcegraph | ive also tried an overlay to set global nodejs = nodejs-16_x; to no avail, as well as the approach from here https://discourse.nixos.org/t/how-to-use-pnpm-with-recent-nodejs/21867/2, which adds nodejs16 to the PATH of /nix/store/s01asphglgvimr64ymbddc0lf8ln7rs1-pnpm-7.24.2/bin/pnpm, but that script invokes /nix/store/s01asphglgvimr64ymbddc0lf8ln7rs1-pnpm-7.24.2/bin/.pnpm-wrapped which has node 14 in its shebang | 21:12:19 |
Lily Foster | In reply to @strum355:matrix.org
nodejs-16_x.pkgs.pnpm doesnt add pnpm to path like nodePackages.pnpm does (oops I tried to fix as much of that as I could in the node2nix update, but I was more doing that as a quick/hacky stopgap until we got better tooling so I guess some packages stopped working) | 21:13:31 |
stroem - sourcegraph | is there a quick-fix i can do in my flake? 😬 | 21:14:07 |
Lily Foster | In reply to @strum355:matrix.org ive also tried an overlay to set global nodejs = nodejs-16_x; to no avail, as well as the approach from here https://discourse.nixos.org/t/how-to-use-pnpm-with-recent-nodejs/21867/2, which adds nodejs16 to the PATH of /nix/store/s01asphglgvimr64ymbddc0lf8ln7rs1-pnpm-7.24.2/bin/pnpm, but that script invokes /nix/store/s01asphglgvimr64ymbddc0lf8ln7rs1-pnpm-7.24.2/bin/.pnpm-wrapped which has node 14 in its shebang So wait you want it to build with nodejs-14_x but then run with 16? | 21:14:13 |
stroem - sourcegraph | i want nothing to do with node 14 | 21:14:25 |
stroem - sourcegraph | im not sure where or how node 14 is getting dragged into it | 21:14:42 |
Lily Foster | Ohh it works in 18 but not 16. Well that's bizarre | 21:14:43 |
Lily Foster | In reply to @strum355:matrix.org im not sure where or how node 14 is getting dragged into it (thought it was my sins from that node2nix PR I made to unblock nodePackages coming to haunt me -- that's when I had nightmares about npm not copying bins right and just rewrote it to copy manually) | 21:15:21 |
Lily Foster | In reply to @strum355:matrix.org is there a quick-fix i can do in my flake? 😬 Easiest fix is probably to just make a wrapper derivation to manually add the bin on top of nodejs-16_x.pkgs.pnpm | 21:16:35 |
Lily Foster | I'm not sure why it wouldn't be getting copied though | 21:16:42 |
Lily Foster | In reply to @strum355:matrix.org
nodejs-16_x.pkgs.pnpm doesnt add pnpm to path like nodePackages.pnpm does Are you on stable or unstable? I get a bin/pnpm that seems to work when building nodejs-16_x.pkgs.pnpm on my system? | 21:19:07 |
stroem - sourcegraph | pinned to 6f38b43c8c84c800f93465b2241156419fd4fd52 | 21:35:56 |
Winter (she/her) | In reply to @lily:lily.flowers Ohh it works in 18 but not 16. Well that's bizarre oh god... | 21:36:10 |
Lily Foster | In reply to @strum355:matrix.org pinned to 6f38b43c8c84c800f93465b2241156419fd4fd52 Oh that's from a while ago. Can you try a newer nixpkgs revision? | 21:37:18 |
Winter (she/her) | Oh that's ancient in terms of Node fixes | 21:48:26 |
Winter (she/her) | In reply to @lily:lily.flowers Ohh it works in 18 but not 16. Well that's bizarre (This isn't expected with old node2nix even... huh.) | 21:49:20 |