Nix NodeJS | 209 Members | |
| 60 Servers |
| Sender | Message | Time |
|---|---|---|
| 14 Oct 2023 | ||
In reply to @lily:lily.flowers I made an impure derivation, and now it's failing with:
I don't know if it's very relevant, but it's kind of sus | 22:59:52 | |
In reply to @dandellion:dodsorf.asThat is pretty weird, but i'm not sure how relevant it is. I'm assuming this is all an artifact of that npm does not consider sourcehut a source that it can pull tarballs from and must fall back to git checkout. As for where that is going wrong, i need to dive in to our tooling again and instrument npm to find why it doesn't like that | 23:02:16 | |
fwiw running nix develop on the derivation, and then manually running the npmConfigHook and such does succesfully build it | 23:03:20 | |
In reply to @dandellion:dodsorf.asThat's expected since dev shell lets npm call out to the internet when it's not supposed to need to (npm gets very very happy about silently deciding something is wrong and deleting and redownloading from the internet....) | 23:04:12 | |
| Dandellion: Do you think you could share your derivation for me to poke at later? | 23:04:49 | |
| sure! | 23:04:56 | |
In reply to @lily:lily.flowersAh right, yeah, I'm mainly confused about why the impure derivation then fails to build | 23:05:30 | |
| since nix develop should also come with npmDeps from the npm fetcher | 23:05:52 | |
| Yeah it should make those available for npm when running the config hook | 23:06:14 | |
| https://github.com/dali99/nixos-matrix-modules/commit/ad76e1a94ebb99b34e1fa021e5a0e0b870f7016f | 23:08:11 | |
| 15 Oct 2023 | ||
| 20:53:53 | ||
Lily Foster, I guess buildNpmPackage could add a npmWorkspaces option to simplify building multiple workspaces. It's not really an issue, though, to just build the other packages in a preBuild. | 20:55:25 | |
| Also, thank you for your help on that PR again. | 20:57:18 | |
In reply to @felschr:matrix.orgIt's weird to understand what that would mean though. Like do they all just get installed side-by-side in $out/lib/node_modules and bins all installed in $out/bin? | 20:57:22 | |
| hmm, right | 20:57:56 | |
| I guess that could make sense | 20:58:14 | |
something like npmWorkspaceDeps? | 20:58:17 | |
| really npm should be doing this correctly tbh | 20:58:39 | |
| in my case I only need those package to be built so the main workspace can use them as dependencies | 20:58:46 | |
| Yeah | 20:58:58 | |
| 19 Oct 2023 | ||
| this missing integrity hash bug in npm just got me again, are there currently plans to handle this? | 12:54:20 | |
| plans yes | 12:54:57 | |
| time, we'll see | 12:55:02 | |
| if someone wants to work on it, i can push my wip code to refactor lockfile fixup and provide guidance | 12:55:18 | |
| (pls i need more ppl on the nodejs team ðŸ˜) | 12:55:42 | |
In reply to @lily:lily.flowersi could take a look at it | 12:56:38 | |
In reply to @marie:marie.colognei gotta deal with $dayjob rn, but i'll post stuff later if you wanna look | 12:57:37 | |
| thank youuuu (no pressure if you find it too much, but i appreciate even just more eyes on it) | 12:58:01 | |
| 21 Oct 2023 | ||
In reply to @lily:lily.flowersmeow | 12:08:00 | |
In reply to @marie:marie.colognethank you for reminder, i,,, uh, forgot | 12:08:20 | |