!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

203 Members
57 Servers

Load older messages


SenderMessageTime
14 Dec 2022
@jeroen:simonetti.nlJeroen Simonetti joined the room.17:42:51
@jeroen:simonetti.nlJeroen Simonetti

Hello,
I am trying to package github.com/zwave-js/zwave-js-ui but am getting an error during build phase of which I don;t realy know what to make of it. Mind you, I am a total nodejs novice, so this is probably due to pebkac. I would appreciate some help.
The error I am having is:

@nix { "action": "setPhase", "phase": "buildPhase" }
building
SyntaxError: Unknown token: { line: 3, col: 2, type: 'INVALID', value: undefined } 3:2 in lockfile
    at Parser.unexpected (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/yarnpkg-lockfile.js:5064:11)
    at Parser.parse (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/yarnpkg-lockfile.js:5193:14)
    at parse (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/yarnpkg-lockfile.js:5262:17)
    at module.exports.exports.default (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/yarnpkg-lockfile.j>
    at prefetchYarnDeps (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/index.js:129:28)
    at main (/nix/store/0s6r2hk9ry5nln2p66nr9db95xihksjg-prefetch-yarn-deps/libexec/index.js:183:9)
17:45:27
@adam:valkor.netadamcstephens joined the room.18:18:09
@winterqt:nixos.devWinter (she/her) Jeroen Simonetti: This uses Yarn "berry," which we don't support at this time. 18:22:37
@winterqt:nixos.devWinter (she/her)(It's essentially a rewrite of Yarn, but barely any packages use it.)18:22:54
@jeroen:simonetti.nlJeroen SimonettiCheck. That's unfortunate, but thank you for the quick response!18:23:27
@winterqt:nixos.devWinter (she/her)It's on my shortlist of things to tackle, though. No clue when I'll get to it considering everything else that's in front of it, but I hope I'll eventually be able to do it.18:24:06
17 Dec 2022
@winterqt:nixos.devWinter (she/her) @Jeroen Simonetti, with regards to our conversation about berry, I spent some time thinking about it yesterday, and have a pretty easy to implement solution in mind. I'll implement it soon :) 20:26:58
@jeroen:simonetti.nlJeroen SimonettiAwesome! Looking forward to it!20:27:43
19 Dec 2022
@marijan:matrix.orgmarijan joined the room.14:50:40
21 Dec 2022
@yuu:matrix.orgYuu Yin changed their display name from yuu✨✨ to Yuu☯Yin.19:54:57
22 Dec 2022
@aktaboot:tchncs.deaktaboot
In reply to @winterqt:nixos.dev
@aktaboot, I can't repro your issue, FWIW. The only thing that was being thrown was that Python was missing, right?

hmm, this is weird, I just retried and it give me the same error as before 🤔 did you use the file I uploaded for your test ?

I think the error is that it trying to fetch something while building, and can't

14:38:27
@aktaboot:tchncs.deaktabootdoes not seem directly related to python14:39:23
@aktaboot:tchncs.deaktabootRedacted or Malformed Event14:40:19
@aktaboot:tchncs.deaktaboot https://pastebin.com/32vkue0f 14:41:14
@winterqt:nixos.devWinter (she/her)
In reply to @aktaboot:tchncs.de
https://pastebin.com/32vkue0f

Ah, yeah, I didn't run into that issue because I'm using to-be-upstreamed tooling that takes care of that.

In the meantime, you can add npm_config_nodedir = srcOnly nodejs to your derivation.

14:42:51
@aktaboot:tchncs.deaktabootoh okay, would that 'break' the sandbox ?14:46:43
@winterqt:nixos.devWinter (she/her)no. (why do you think it would?)14:50:54
@aktaboot:tchncs.deaktabootstill getting failed download, but now for another thing (esbuild-linux-64)14:51:01
@aktaboot:tchncs.deaktaboot
In reply to @winterqt:nixos.dev
no. (why do you think it would?)
I assumed the error came from the fact that build process has no network access
14:52:02
@winterqt:nixos.devWinter (she/her)
In reply to @aktaboot:tchncs.de
I assumed the error came from the fact that build process has no network access
what setting that env var does is point it to what it wants from the network
14:52:25
@winterqt:nixos.devWinter (she/her)so it doesn't try to download it14:52:30
@winterqt:nixos.devWinter (she/her)
In reply to @aktaboot:tchncs.de
still getting failed download, but now for another thing (esbuild-linux-64)

huh, i don't think i ran into that. can you send the drv so i can repro and see what would be different, just for my tooling dev sake?

also: setting ESBUILD_BINARY_PATH = "${lib.getExe buildPackages.esbuild} should fix that.

14:56:16
@winterqt:nixos.devWinter (she/her)sorry, drop the quote and the interpolation14:56:45
@winterqt:nixos.devWinter (she/her)just do = lib.getExe ...14:56:51
@aktaboot:tchncs.deaktaboot https://pastebin.com/x9YwNYGj 14:57:25
@winterqt:nixos.devWinter (she/her)
In reply to @aktaboot:tchncs.de
still getting failed download, but now for another thing (esbuild-linux-64)
* huh, i don't think i ran into that. can you send the drv so i can repro and see what would be different, just for my tooling dev sake?
also: setting ESBUILD_BINARY_PATH = lib.getExe buildPackages.esbuild should fix that.
14:57:27
@winterqt:nixos.devWinter (she/her)
In reply to @aktaboot:tchncs.de
https://pastebin.com/x9YwNYGj
i mean the source :)
14:57:34
@aktaboot:tchncs.deaktaboot http://0x0.st/o5pQ.nix 14:58:29
@winterqt:nixos.devWinter (she/her)
In reply to @winterqt:nixos.dev
huh, i don't think i ran into that. can you send the drv so i can repro and see what would be different, just for my tooling dev sake?
also: setting ESBUILD_BINARY_PATH = lib.getExe buildPackages.esbuild should fix that.
aktaboot: did that fix end up working btw
16:56:50

Show newer messages


Back to Room ListRoom Version: 6