!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

Load older messages


SenderMessageTime
9 Aug 2023
@lily:lily.flowersLily Foster
In reply to @countoren:matrix.org

did you guys ever got:

       > /nix/store/pgf87rgkzdbqhhsddpligy8xiwar63w8-stdenv-linux/setup: line 136: pop_var_context: head of shell_variables not a function context

That's a harmless warning from bash. The build error should be above that
10:16:44
@countoren:matrix.orgcountoren Lily Foster: I was trying to look around buildNpmPackage and fetchNpmDeps, what did you had in mind in order to setup the token? 14:21:54
@countoren:matrix.orgcountoren * Lily Foster: I am looking at buildNpmPackage and fetchNpmDeps, what did you have in mind in order to setup the token? 14:22:20
@countoren:matrix.orgcountorenis it NPM_TOKEN env that we need to set?14:23:20
@countoren:matrix.orgcountoren * Lily Foster: I am looking at buildNpmPackage and fetchNpmDeps, what do you have in mind in order to setup the token? 14:23:46
@lily:lily.flowersLily Foster
In reply to @countoren:matrix.org
is it NPM_TOKEN env that we need to set?
Yeah and it'll need to be read here (and support for HTTP Authorization header added to the util function): https://github.com/NixOS/nixpkgs/blob/fe7a15579219350f23135e9e8ee35b7423ae06ef/pkgs/build-support/node/fetch-npm-deps/src/parse/mod.rs#L160
18:53:08
@lily:lily.flowersLily FosterI'll try to hack something up later today. If I implement, could I get you to test it?18:53:37
@lily:lily.flowersLily Foster
In reply to @lily:lily.flowers
Yeah and it'll need to be read here (and support for HTTP Authorization header added to the util function): https://github.com/NixOS/nixpkgs/blob/fe7a15579219350f23135e9e8ee35b7423ae06ef/pkgs/build-support/node/fetch-npm-deps/src/parse/mod.rs#L160
And it should be added to the list of impure env vars here: https://github.com/NixOS/nixpkgs/blob/cd6d4800edca7c9765f40a4416569911d7952b30/pkgs/build-support/node/fetch-npm-deps/default.nix#L168
18:55:35
@countoren:matrix.orgcountorensure19:26:10
@countoren:matrix.orgcountorenI could test if you got something.19:34:22
@lily:lily.flowersLily Foster
In reply to @countoren:matrix.org
I could test if you got something.
Okay, thank you! I'll probably have something in ~3 hours or so
19:35:08
@countoren:matrix.orgcountoren Lily Foster: do you know how can I manually add dependencies to a package built by buildNodePackage 20:07:49
@countoren:matrix.orgcountorenwas trying to override with more nativeBuildInputs but it does not seem to work20:08:27
@lily:lily.flowersLily FosterWhat sort of dependencies? Like other node dependencies?20:20:31
@countoren:matrix.orgcountorenyes I am fighting angular/cli which should build the project to have the other npm dependency listed in its ng --version command20:22:11
@countoren:matrix.orgcountorenit seems that if i will go into a shell it will have everything it needs while in nix build it is lucking some like angular-build20:23:02
@countoren:matrix.orgcountoren * it seems that if i will go into a shell it will have everything it needs while in nix build it is lucking some like build-angular20:26:25
@countoren:matrix.orgcountoren * yes I am fighting angular/cli which should build the project to have the other npm dependencies listed in its ng --version command20:26:37
@lily:lily.flowersLily FosterHow are you adding angular? Is it not a devDependency in package.json?20:32:14
@countoren:matrix.orgcountorenI was trying couple of ways: 1) from supplement.json/nix 2) in nativeBuildInputs override package proeprty20:34:12
@countoren:matrix.orgcountorenusing nodePackage."@angular/cli"20:34:23
@countoren:matrix.orgcountorenthe thing is the project as old deps20:34:35
@countoren:matrix.orgcountorensupplements are old versions20:34:44
@countoren:matrix.orgcountorensupplements has older version of angular/cli20:43:20
@countoren:matrix.orgcountorenbut trying to use this version that is generated by node2nix has missing dependencies like build-angular20:43:53
@countoren:matrix.orgcountoren * supplements has older version of angular/cli(8.3.21)20:45:07
@countoren:matrix.orgcountorenwill I be able to use fetchNpmDeps in order to download 8.3.21?20:46:30
@lily:lily.flowersLily FosterfetchNpmDeps downloads whatever versions are in the package-lock.json file21:27:01
@lily:lily.flowersLily FosterIf it's the old versions then it'll use the old versions21:27:12
@lily:lily.flowersLily Foster Also we are looking to deprecate the nodePackages set at some point because it's bitrot pretty bad at this point and has architectural issues 21:28:28

Show newer messages


Back to Room ListRoom Version: 6