!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
58 Servers

Load older messages


SenderMessageTime
3 Jan 2024
@lily:lily.flowersLily Foster * and here's where those two get defined: https://github.com/NixOS/nixpkgs/blob/d120d3076257ce88d0c35e61b729dcb55c88c642/pkgs/build-support/node/build-npm-package/hooks/default.nix#L17-L18 13:38:56
@lily:lily.flowersLily Fosterif you define them similarly it should work13:39:03
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de

so this?

export NIX_NODEJS_BUILDNPMPACKAGE=1
export npm_config_node_gyp="${nodejs}/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js";

13:40:38
@lily:lily.flowersLily Fosternot the buildNpmpackage part13:40:51
@lily:lily.flowersLily Fosterprobably13:40:54
@lily:lily.flowersLily Fosterit's not actually using npm, right?13:41:07
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI hope not13:41:22
@lily:lily.flowersLily Fosterand you do need nodedir too13:41:31
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deI had another package recently that needed yarn, npm and node13:41:34
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
I hope not
(that var just activates a sleeper agent we installed in npm to fix some of its broken behavior and inject vars when their fetcher lib re-execs the entirety of npm for git deps........)
13:42:17
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
(that var just activates a sleeper agent we installed in npm to fix some of its broken behavior and inject vars when their fetcher lib re-execs the entirety of npm for git deps........)
(their coherence model for the moving parts of npm is utterly hecked)
13:42:51
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deTIL about srcOnly13:44:27
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @lily:lily.flowers
(that var just activates a sleeper agent we installed in npm to fix some of its broken behavior and inject vars when their fetcher lib re-execs the entirety of npm for git deps........)
obviously :D
13:44:47
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
(that var just activates a sleeper agent we installed in npm to fix some of its broken behavior and inject vars when their fetcher lib re-execs the entirety of npm for git deps........)
(and it re-execs npm without necessarily even ensuring lockfiles are coherent in the git dep and requiring them since it doesn't lock those needed deps in the original lockfile. and npm loves to silently get spooked, ignore the lockfile, and try to redownload literally everything..........)
13:45:32
@lily:lily.flowersLily Foster(oh and don't forget it drops the passed options when it re-execs. i mean come on, who needs those?)13:46:18
@lily:lily.flowersLily Foster(at least they set an env var to ensure they don't accidentally recurisvely re-exec npm with no end, right?)13:46:39
@lily:lily.flowersLily Foster(ugh npm makes me sad)13:46:44
@lily:lily.flowersLily Foster(sorry for rant...)13:46:50
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @lily:lily.flowers
(ugh npm makes me sad)
try yarn, might make you sadder
13:47:30
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
try yarn, might make you sadder
i doubt that tbh. sure it's missing some stuff we want for reproducibility, but at least it felt somewhat more intelligently designed
13:48:04
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @lily:lily.flowers
i doubt that tbh. sure it's missing some stuff we want for reproducibility, but at least it felt somewhat more intelligently designed

➤ 8;;https://yarnpkg.com/advanced/error-codes#yn0060---incompatible_peer_dependencyYN00608;;: │ vitest@npm:0.34.6 [f9b2d] provides @types/node (pe6001) with version 16.9.1, which doesn't satisfy what vite requests

13:48:19
@lily:lily.flowersLily Fosterand their solution to lockfile reproducibility involves actually sane locking that doesn't produce megabytes large dep trees13:48:26
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @janne.hess:helsinki-systems.de

➤ 8;;https://yarnpkg.com/advanced/error-codes#yn0060---incompatible_peer_dependencyYN00608;;: │ vitest@npm:0.34.6 [f9b2d] provides @types/node (pe6001) with version 16.9.1, which doesn't satisfy what vite requests

(not an error btw because I ran yarn dedupe first)
13:48:49
@lily:lily.flowersLily Foster(now if only their lockfile format was sane....)13:48:53
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
In reply to @lily:lily.flowers
(now if only their lockfile format was sane....)
it is with berry
13:48:59
@lily:lily.flowersLily Foster
In reply to @janne.hess:helsinki-systems.de
it is with berry
saner, yeah
13:49:06
@lily:lily.flowersLily Fostertbh pnpm looks the most promising at this point by far13:49:20
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.deyeah but it will take years for people to adapt that13:49:39
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.de
/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/sh: line 1: c++filt: command not found
/nix/store/q1c2flcykgr4wwg5a6h450hxbk4ch589-bash-5.2-p15/bin/sh: line 1: readelf: command not found
13:49:44
@janne.hess:helsinki-systems.de@janne.hess:helsinki-systems.debruh13:49:45

Show newer messages


Back to Room ListRoom Version: 6