Nix NodeJS | 193 Members | |
| 57 Servers |
| Sender | Message | Time |
|---|---|---|
| 6 Mar 2025 | ||
| * Guix people totally discard FODs on their official repos. I'm not sure if non-guix people embraced FODs. | 04:30:55 | |
| * Guix totally discards FODs on their official repos. I'm not sure if non-guix people embraced FODs. | 04:31:14 | |
| * Guix totally discards FODs on their official repos. I'm not sure if nonguix people embraced FODs. | 04:32:00 | |
In reply to @joaomoreira:matrix.orgOh i know and agree. But still make me sad :( | 05:33:49 | |
| 7 Mar 2025 | ||
| 16:44:27 | ||
| 8 Mar 2025 | ||
| 21:41:03 | ||
| 11 Mar 2025 | ||
| 16:36:23 | ||
| 20 Mar 2025 | ||
| 08:17:25 | ||
| 08:17:57 | ||
| 16:16:22 | ||
| 25 Mar 2025 | ||
| 17:42:27 | ||
| 17:44:54 | ||
| 26 Mar 2025 | ||
| do we have a prefetcher for pnpm? | 20:43:36 | |
| | 20:45:34 | |
| hm, enoscrumplex | 20:48:13 | |
| 20:56:43 | |
| ah, my bad 😄 | 20:57:18 | |
| 27 Mar 2025 | ||
| Hello. I have a pnpm+rsbuild package I am trying to build with nix. It used to build, but it does not any longer. I'm unsure in the exact change that has caused it, nor have my attempts at enabling logging actually enabled any useful logging. The error is:
This is a TS project with some WASM. I poked around in the wasm pack plugin source and couldn't find where it may attempt to fetch some release. Outside of the sandbox it builds fine. Doing a bisect shows that three dependencies were added to the project in the commit that broke the sandboxed builds:
| 21:25:06 | |
| * Hello. I have a pnpm+rsbuild package I am trying to build with nix. It used to build, but it does not any longer. I'm unsure in the exact change that has caused it, nor have my attempts at enabling logging actually enabled any useful logging. The error is:
This is a TS project with some WASM. I poked around in the wasm pack plugin source and couldn't find where it may attempt to fetch some release. Outside of the sandbox it builds fine. Doing a bisect shows that three dependencies were added to the project in the commit that broke the sandboxed builds:
| 21:25:20 | |
| If anyone has any ideas as to what could be the issue or how to debug it further please let me know | 21:25:34 | |
| My initial thought was something with github dependencies, but creating a dummy project with only the webpack-glsl-loader dependency works fine | 21:26:20 | |
| Ok I removed the "wasm-pack" line in the package.json and it works | 21:31:08 | |
| It does complain that it is not able to download wasm-opt, but it does compile | 21:32:57 | |
| * It does complain that it is not able to download wasm-opt/binaryen, but it does compile | 21:33:07 | |
Yeah it seems to be some sort of issue when wasm-pack is in the dependency tree. Even if I put it in the optional dependencies then give it --no-optional, the build fails because something seems to expect it to exist | 22:04:54 | |
| Upstream there are some issues open for this | 22:05:12 | |
| 28 Mar 2025 | ||
| 14:55:15 | ||
| 15:03:57 | ||
Hi, we would like to package Overleaf based on work from an existing draft PR at https://github.com/NixOS/nixpkgs/pull/216889. One problem with Overleaf is that it has Git dependencies in its package.json file that have build scripts but do not have a package-lock.json file, and fetch-npm-deps doesn't support that (and rightly so, because it would not be reproducible). In that PR, the authors created a Python scripts that finds the Git dependencies in package.json, clones them, modifies the package.json to point to the clone, then run npm install to update the package-lock.json with the Git dependencies' transitive dependencies and commit that patched package-lock.json to Nixpkgs. We have a different idea where we would build the Git dependencies individually using buildNpmPackage, and then in the prePatch phase of Overleaf, we would modify the package-lock.json file in the prePatch phase to replace the Git dependencies with local dependencies that point to the output of the buildNpmPackage derivations. This would require modifying fetch-npm-deps to accept local dependencies (at least those that point to the Nix store in the form of "resolved": "/nix/store/..."). Do you think this would be the best approach? Would Nixpkgs accept a change to fetch-npm-deps to accept local dependencies? If so, maybe add a flag like --store-dir to fetch-npm-deps to tell it the location of the store (/nix/store) and only allow local dependencies under this directory? | 15:12:13 | |
* Hi, we would like to package Overleaf based on work from an existing draft PR at https://github.com/NixOS/nixpkgs/pull/216889. One problem with Overleaf is that it has Git dependencies in its package.json file that have build scripts but do not have a package-lock.json file, and fetch-npm-deps doesn't support that (and rightly so, because it would not be reproducible). In that PR, the authors created a Python script that finds the Git dependencies in package.json, clones them, modifies the package.json to point to the clones, then runs npm install to update the package-lock.json with the Git dependencies' transitive dependencies and commit that patched package-lock.json to Nixpkgs. We have a different idea where we would build the Git dependencies individually using buildNpmPackage, and then in the prePatch phase of Overleaf, we would modify the package-lock.json file to replace the Git dependencies with local dependencies that point to the output of the buildNpmPackage derivations. This would require modifying fetch-npm-deps to accept local dependencies (at least those that point to the Nix store in the form of "resolved": "/nix/store/..."). Do you think this would be the best approach? Would Nixpkgs accept a change to fetch-npm-deps to accept local dependencies? If so, maybe add a flag like --store-dir to fetch-npm-deps to tell it the location of the store (/nix/store) and only allow local dependencies under this directory? | 15:13:55 | |