Nix NodeJS | 197 Members | |
| 57 Servers |
| Sender | Message | Time |
|---|---|---|
| 29 Oct 2024 | ||
| can fetchNpmDeps install dev dependencies? | 12:42:48 | |
| asking for a project that doesn't grok the difference between dependencies and devDependencies | 12:43:06 | |
In reply to @hexa:lossy.networkIf the correct hash is specified yes | 13:18:35 | |
| nvm | 13:18:50 | |
| the nodejs stuff is entirely dev deps after all | 13:19:01 | |
| they were telling me they build their css with sass and stuff | 13:19:13 | |
| and then npm only contains linters | 13:19:19 | |
| 19:58:10 | ||
| 31 Oct 2024 | ||
| 05:47:47 | ||
| 19:38:31 | ||
| I've been trying to fix the build of I've been able to get builds of the same package (on a newer version) to build as part of Nixpkgs' If I switch to building it via node2nix, can I override recursive dependencies as well as top-level ones? | 19:54:46 | |
| * I've been trying to fix the build of I've been able to get builds of the same package (on a newer version) to build as part of Nixpkgs' If I switch to building it via node2nix, can I override recursive dependencies as well as top-level ones? | 19:55:21 | |
| Last night I started trying to move But I'm not sure if I'm headed down the wrong path with that effort. | 19:58:16 | |
In reply to @pxc:matrix.orgcan you share any more context about what's failing? you are probably just missing some dep the C++ plugin requires | 19:58:43 | |
| * Last night I started trying to move I'm just not sure if I'm headed down the wrong path with that effort. | 19:58:46 | |
| * Last night I started trying to move I'm just not sure if I'm headed down the right path with that effort. | 19:58:59 | |
| node2nix/nodePackages will only result in more pain and incorrectly packaged things for everyone. it's dead | 19:59:11 | |
| it's a weird failure where it tries to create a fat binary with the aarch64 parts of the executable twice | 19:59:26 | |
| logs? | 19:59:50 | |
when I tried building utf-8-validate (the latest version) by itself, as part of nodePackages, it worked when I added node-gyp and libtool, but I think the deps needed by the older version pulled in by @microsoft/signalr might be different | 20:00:35 | |
| sure thing, 1 sec | 20:00:38 | |
| here's the build log: https://pastebin.com/2VP96FLp | 20:02:31 | |
here's an existing Nixpkgs issue that points to a piece of the breakage that was already solved (macOS needs perl in the nativeBuildInputs for bitwarden-cli since utf-8-validate uses perl one-liners in its gyp config: https://github.com/NixOS/nixpkgs/issues/339576 | 20:03:51 | |
and I don't totally know what to make of them, but some of the conditional gyp bindings in different versions of that dep seem instructive somehow. In the latest version of utf-8-validate, binding.gyp looks like this: https://github.com/websockets/utf-8-validate/blob/master/binding.gyp | 20:11:12 | |
In reply to @pxc:matrix.orgit's building the x86_64 validator as aarch64...? | 20:15:17 | |
| yeah | 20:15:26 | |
| there are a small number of occurrences of this problem in other packages as well, unresolved | 20:15:49 | |
when I got the latest version of utf-8-validate to build by itself, adding libtool to the buildInputs made it stop doing this, it seems | 20:16:10 | |
| i can't even tell if the upstream dep is busted at 5.0.10 or if it's darwin sdk fuckery that might be fixed on master as of this morning | 20:16:12 | |
the conditions in binding.gyp seem more sophisticated in that latest version than in some others that appear in the tree | 20:16:48 | |