!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
13 Jan 2023
@lily:lily.flowersLily Foster
In reply to @strum355:matrix.org
nodejs always makes me sad, thanks for the help 🙂
Same 🙃. Happy to help
12:52:49
@lily:lily.flowersLily Foster (To be clear, node2nix did not work with newer npm for a while so nodePackages was actually set to nodejs.pkgs.override { nodejs = nodejs-14_x; } to make it so that nodePackages didn't immediately break when nodejs was updated) 12:54:07
@lily:lily.flowersLily Foster(This was the PR to un-heck it: https://github.com/NixOS/nixpkgs/pull/193337)12:55:26
14 Jan 2023
@yuu:matrix.orgYuu Yin changed their display name from Yuu☯Yin to yuu.11:07:19
18 Jan 2023
@yuu:matrix.orgYuu Yin changed their display name from yuu to Yuu Yin.13:42:43
31 Jan 2023
@arteneko:matrix.org$nyx (it/its) joined the room.00:22:04
13 Feb 2023
@arteneko:matrix.org$nyx (it/its) changed their display name from Nyx (it/its) to $nyx (it/its).14:02:24
18 Feb 2023
@robert:funklause.dedotlambdaIs there a way to package a project using Yarn 3.3.1? I'm trying to build https://github.com/home-assistant/frontend from source and hit https://github.com/NixOS/nixpkgs/issues/148042 on the way.16:56:12
@winterqt:nixos.devWinter (she/her)not atm unless you use node2nix16:58:56
@robert:funklause.dedotlambda
In reply to @winterqt:nixos.dev
not atm unless you use node2nix
But that would only read package.json, not yarn.lock?
16:59:48
@winterqt:nixos.devWinter (she/her)you can nuke the yarn.lock and generate a lockfile from that17:00:52
@winterqt:nixos.devWinter (she/her) *npm lockfile with npm install 17:01:04
@winterqt:nixos.devWinter (she/her)

by that point you can just use fetchNpmDeps

though that lockfile size may be huge ugh

17:01:25
@robert:funklause.dedotlambdaHas anyone tried using https://github.com/imsnif/synp ? I wonder if it's deterministic17:01:25
@robert:funklause.dedotlambdaOh, same issue though: https://github.com/imsnif/synp/issues/9517:02:03
@winterqt:nixos.devWinter (she/her)it requires an already populated node_modules tree :/17:02:13
@winterqt:nixos.devWinter (she/her)and probably doesn't support v317:02:20
@winterqt:nixos.devWinter (she/her)* and probably doesn't support v217:02:23
@robert:funklause.dedotlambdaWell, no build from source then.17:03:58
@lily:lily.flowersLily Foster
In reply to @winterqt:nixos.dev
not atm unless you use node2nix
We have the yarn fetcher, so they can use that, right?
17:07:20
@winterqt:nixos.devWinter (she/her)not with v217:08:42
@lily:lily.flowersLily Fosterv2 what?17:09:10
@winterqt:nixos.devWinter (she/her)yarn17:09:28
@winterqt:nixos.devWinter (she/her)entirely different lockfile format17:09:33
@lily:lily.flowersLily FosterOhhh right forgot about that17:09:45
@robert:funklause.dedotlambda
In reply to @lily:lily.flowers
v2 what?
https://github.com/yarnpkg/berry
17:09:51
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
https://github.com/yarnpkg/berry
Yeah I knew about it but have mostly tried to ignore its existence. We don't have tooling for it so something like node2nix (that locks in Nix code rather than yarn.lock) might be one of the only solutions
17:11:05
1 Mar 2023
@robert:funklause.dedotlambda How can we make the npmInstallHook work with workspaces? https://github.com/NixOS/nixpkgs/pull/218923 03:18:59
@lily:lily.flowersLily Foster
In reply to @robert:funklause.de
How can we make the npmInstallHook work with workspaces? https://github.com/NixOS/nixpkgs/pull/218923
I planned to dig in to npm at some point to figure out why it is convinced it still needs to get dep metadata from the internet when the entire lockfile is cached. Because as far as I remember, it should otherwise theoretically work. Alternatively if all of the packages are in the npm registry you could just fetch from there and it doesn't have that problem
11:37:24
6 Mar 2023
@amardeeps:matrix.orgamardeeps joined the room.11:52:49

Show newer messages


Back to Room ListRoom Version: 6