!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

211 Members
62 Servers

Load older messages


SenderMessageTime
5 Jul 2023
@lily:lily.flowersLily FosterOh really? I may be misremembering then. I try to think about yarn2nix as little as I can14:16:27
@adam:valkor.netadamcstephensi was looking at pnpm-lock-export yesterday to see if i could add the newer lock file format. so you're telling me we probably don't want to go pnpm->yarn :)14:17:44
@adam:valkor.netadamcstephensI'd like to help find a solution for pnpm before too long since woodpecker is using it14:25:02
@lily:lily.flowersLily FosterWell I hope to dump yarn2nix at some point. We're cooking up newer tooling for yarn but it'll be a bit14:30:08
@adam:valkor.netadamcstephensthe quickest route for pnpm is probably to update the lock exporter, if i can wrap my head around what it's doing14:31:18
@ambroisie:belanyi.fr@ambroisie:belanyi.fr
In reply to @adam:valkor.net
i was looking at pnpm-lock-export yesterday to see if i could add the newer lock file format. so you're telling me we probably don't want to go pnpm->yarn :)
I think using yarn as a stopgap is good enough for our purposes
19:08:52
@ambroisie:belanyi.fr@ambroisie:belanyi.frAnd thanks for looking into it ❤️19:09:10
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
Well I hope to dump yarn2nix at some point. We're cooking up newer tooling for yarn but it'll be a bit
(We have that project board now for anyone who wants to see the rough priority/ordering for stuff. And of course help on any of the "todo" items is very appreciated)
19:22:20
10 Jul 2023
@janne.hess:helsinki-systems.deJanne Heß Lily Foster: my yarn thingie ended up working btw. It looks like the cache just builds reproducibly. Yarn versions can be fixed by doing yarn set version and copying .yarn into the cache FOD and then copying it to the sandbox in the real build 10:05:12
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
Lily Foster: my yarn thingie ended up working btw. It looks like the cache just builds reproducibly. Yarn versions can be fixed by doing yarn set version and copying .yarn into the cache FOD and then copying it to the sandbox in the real build
Oh cool, can you try it across a few yarn versions?
10:05:40
@lily:lily.flowersLily Foster(For reproducibility?)10:05:54
@janne.hess:helsinki-systems.deJanne Heß Since people actually commit the version for me, I don't actually use yarn set version. I just noticed that since I need it at runtime so it has to be copied to $out as well 10:06:58
@janne.hess:helsinki-systems.deJanne HeßSo the fact that .yarn has to be copied affects me between build and run, not between the FOD and the build10:07:26
@janne.hess:helsinki-systems.deJanne Heß(Also kind of related, turborepo and next.js is possibly the worst garbage I have seen in a long time)10:07:54
13 Jul 2023
@aktaboot:tchncs.deaktaboot changed their profile picture.06:56:51
14 Jul 2023
@janne.hess:helsinki-systems.deJanne HeßUmm, is this intended? https://github.com/NixOS/nixpkgs/blob/release-23.05/pkgs/build-support/node/build-npm-package/hooks/default.nix#L915:00:20
@janne.hess:helsinki-systems.deJanne Heß This causes (buildNpmPackage.override { nodejs = nodejs_14; }) to fail horribly 15:00:37
@lily:lily.flowersLily FosterYes it's intended. Can you share build log?15:00:51
@lily:lily.flowersLily FosterOh, 1415:00:59
@lily:lily.flowersLily FosterUhhh one sec while I check15:01:02
@lily:lily.flowersLily FosterThat15:01:03
@janne.hess:helsinki-systems.deJanne Heß Workaround that is even worse: (buildNpmPackage.override { nodejs = nodejs_14; npmHooks = npmHooks.override { buildPackages = buildPackages.extend (self: super: { nodejs = super.nodejs_14; }); }; }) 15:01:07
@lily:lily.flowersLily FosterOh I see what you're saying is unintended15:01:23
@janne.hess:helsinki-systems.deJanne Heß
In reply to @lily:lily.flowers
Oh I see what you're saying is unintended
Yeah sorry that was super unclear
15:01:37
@lily:lily.flowersLily FosterWe should probably just fish out the correct one from spliced attrs15:01:49
@lily:lily.flowersLily FosterI guess15:01:52
@janne.hess:helsinki-systems.deJanne Heß or some extra arg like nodeVersion that gets fed into getAttrByPath pkgs? 15:02:12
@janne.hess:helsinki-systems.deJanne Heß * or some extra arg like nodePackage that gets fed into getAttrByPath pkgs? 15:02:35
@lily:lily.flowersLily FosterI'd rather keep the ability to specify a whole nodejs derivation and also since you linked 23.05, we want something backwards compatible so it is eligible for backport15:02:39
@lily:lily.flowersLily FosterUgh this sucks, though. Maybe we can have the nodejs derivation itself expose the node-gyp location15:04:24

Show newer messages


Back to Room ListRoom Version: 6