!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

177 Members
51 Servers

Load older messages


SenderMessageTime
25 Oct 2024
@emma:rory.gayEmma [it/its]clipboard.png
Download clipboard.png
15:24:53
@emma:rory.gayEmma [it/its]seems i was able to at least fix that error for not-nix builds, so maybe i can clean up my nix build hacks there17:03:24
26 Oct 2024
@tomodachi94:matrix.orgTomodachi94 (they/them) changed their display name from Tomodachi94 to Tomodachi94 (they/them).21:57:02
29 Oct 2024
@hexa:lossy.networkhexacan fetchNpmDeps install dev dependencies?12:42:48
@hexa:lossy.networkhexaasking for a project that doesn't grok the difference between dependencies and devDependencies12:43:06
@thubrecht:matrix.orgthubrecht
In reply to @hexa:lossy.network
can fetchNpmDeps install dev dependencies?
If the correct hash is specified yes
13:18:35
@hexa:lossy.networkhexanvm13:18:50
@hexa:lossy.networkhexathe nodejs stuff is entirely dev deps after all13:19:01
@hexa:lossy.networkhexathey were telling me they build their css with sass and stuff13:19:13
@hexa:lossy.networkhexaand then npm only contains linters13:19:19
@mat:matrix.matmoa.xyz@mat:matrix.matmoa.xyz left the room.19:58:10
31 Oct 2024
@arexon:matrix.orgarexon joined the room.05:47:47
@pxc:matrix.orgpxc joined the room.19:38:31
@pxc:matrix.orgpxc

I've been trying to fix the build of bitwarden-cli on aarch64-darwin. It's built with buildNpmPackage. The issue is in one of the transitive dependencies which builds a C++ executable via node-gyp, and that fails during the patchPhase.

I've been able to get builds of the same package (on a newer version) to build as part of Nixpkgs' nodePackages (though I'm not sure it's correct). What's the right way to tackle this from here?

If I switch to building it via node2nix, can I override recursive dependencies as well as top-level ones?

19:54:46
@pxc:matrix.orgpxc *

I've been trying to fix the build of bitwarden-cli on aarch64-darwin. It's built with buildNpmPackage. The issue is in one of the transitive dependencies which builds a C binary (in newer versions, it's C++) via node-gyp, and that fails during the patchPhase.

I've been able to get builds of the same package (on a newer version) to build as part of Nixpkgs' nodePackages (though I'm not sure it's correct). What's the right way to tackle this from here?

If I switch to building it via node2nix, can I override recursive dependencies as well as top-level ones?

19:55:21
@pxc:matrix.orgpxc

Last night I started trying to move bitwarden-cli (back?) into nodePackages, but it doesn't seem right. I think I might have to also add @microsoft/signalr, which depends on this broken package with native deps (utf-8-validate) and add an override for it to point it at the fixed utf-8-validate package?

But I'm not sure if I'm headed down the wrong path with that effort.

19:58:16
@lily:lily.flowersLily Foster
In reply to @pxc:matrix.org

I've been trying to fix the build of bitwarden-cli on aarch64-darwin. It's built with buildNpmPackage. The issue is in one of the transitive dependencies which builds a C++ executable via node-gyp, and that fails during the patchPhase.

I've been able to get builds of the same package (on a newer version) to build as part of Nixpkgs' nodePackages (though I'm not sure it's correct). What's the right way to tackle this from here?

If I switch to building it via node2nix, can I override recursive dependencies as well as top-level ones?

can you share any more context about what's failing? you are probably just missing some dep the C++ plugin requires
19:58:43
@pxc:matrix.orgpxc *

Last night I started trying to move bitwarden-cli (back?) into nodePackages, but it doesn't seem right. I think I might have to also add @microsoft/signalr, which depends on this broken package with native deps (utf-8-validate) and add an override for it to point it at the fixed utf-8-validate package?

I'm just not sure if I'm headed down the wrong path with that effort.

19:58:46
@pxc:matrix.orgpxc *

Last night I started trying to move bitwarden-cli (back?) into nodePackages, but it doesn't seem right. I think I might have to also add @microsoft/signalr, which depends on this broken package with native deps (utf-8-validate) and add an override for it to point it at the fixed utf-8-validate package?

I'm just not sure if I'm headed down the right path with that effort.

19:58:59
@lily:lily.flowersLily Fosternode2nix/nodePackages will only result in more pain and incorrectly packaged things for everyone. it's dead19:59:11
@pxc:matrix.orgpxcit's a weird failure where it tries to create a fat binary with the aarch64 parts of the executable twice19:59:26
@lily:lily.flowersLily Fosterlogs?19:59:50
@pxc:matrix.orgpxc 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
@pxc:matrix.orgpxcsure thing, 1 sec20:00:38
@pxc:matrix.orgpxchere's the build log: https://pastebin.com/2VP96FLp20:02:31
@pxc:matrix.orgpxc 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
@pxc:matrix.orgpxc 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
@lily:lily.flowersLily Foster
In reply to @pxc:matrix.org
here's the build log: https://pastebin.com/2VP96FLp
it's building the x86_64 validator as aarch64...?
20:15:17
@pxc:matrix.orgpxcyeah20:15:26
@pxc:matrix.orgpxcthere are a small number of occurrences of this problem in other packages as well, unresolved20:15:49

Show newer messages


Back to Room ListRoom Version: 6