| 30 Nov 2025 |
Tomodachi94 (they/them) | https://github.com/NixOS/nixpkgs/pull/466477
It occurred to me that nodePackages is the first recommendation for adding a new Node package, so let's change that haha
| 04:40:44 |
Tomodachi94 (they/them) | * https://github.com/NixOS/nixpkgs/pull/466477
It occurred to me that nodePackages is the first recommendation in the docs for adding a new Node package, so let's change that haha
| 04:41:01 |
Tomodachi94 (they/them) | I responded there, suggesting you configure a proxy | 05:02:45 |
Tomodachi94 (they/them) | Adding a line to /etc/hosts might actually work better and require less configuration | 05:08:25 |
Tomodachi94 (they/them) | * Adding a line to /etc/hosts might actually work better and require less configuration nope, this is wrong | 05:35:10 |
Rene | I tried this and nix build hangs when it calls ng build. No errors but doesn't finish.
Still trying to get the devShell to work | 15:44:32 |
dish [Fox/It/She] | angular may be trying to use the network idk | 16:05:07 |
Rene | 🤔 | 17:38:19 |
Rene | tried nix build --impure, same result | 17:51:33 |
| 1 Dec 2025 |
Tomodachi94 (they/them) | A discussion about nodePackages is happening: https://matrix.to/#/!CTCrFzsBPYmDLmrja4:0upti.me/$BaD-t3TiFCtdz_wkxwBV8FNnX_UkldLxh-NXAUiktVI?via=nixos.org&via=matrix.org&via=tchncs.de | 19:53:13 |
Emma [it/its] | hm, any clue on npm trying to download non cached packages? | 22:46:45 |
Emma [it/its] | out-of-your-element> Installing dependencies
out-of-your-element> npm error code ENOTCACHED
out-of-your-element> npm error request to https://registry.npmjs.org/glob failed: cache mode is 'only-if-cached' but no cached response is available.
out-of-your-element> npm error A complete log of this run can be found in: /build/cache/_logs/2025-12-01T22_46_07_545Z-debug-0.log
out-of-your-element> ERROR: npm failed to install dependencies
| 22:46:55 |
Emma [it/its] | its just a standard buildNpmPackage so... i dont get it lol | 22:47:24 |
Cobalt | Is the lockfile consistent/complete? | 23:01:16 |
Emma [it/its] | narrowed it down to the commit that broke nix builds: https://gitdab.com/cadence/out-of-your-element/commit/ce30272389 | 23:01:19 |
Emma [it/its] | it should be, doing an npm i --save in the dir doesnt break it | 23:01:41 |
Emma [it/its] | * it should be, doing an npm i --save in the dir doesnt change it, but deleting the lock file and trying agai ndoes | 23:01:49 |
Emma [it/its] | tl;dr a package override | 23:02:06 |
Emma [it/its] | using a patches= to replace the lockfile with a cleanly regenerated one amde no change | 23:06:47 |
Emma [it/its] | * using a patches= to replace the lockfile with a cleanly regenerated one made no change | 23:07:02 |
Emma [it/its] | ( Cobalt here's your answer ^) | 23:10:48 |
Cobalt | Sorry to hear that. Thank you for trying though. I haven't encountered errors with overrides yet unfortunately | 23:24:56 |
Emma [it/its] | removing the override and patching the sr made it work | 23:30:00 |
Emma [it/its] | https://cgit.rory.gay/nix/OOYE-module.git/tree/default.nix
dont think im doing anything too weird here, but without the patch i couldn't get it to build :) | 23:30:54 |
| 3 Dec 2025 |
Emma [it/its] | hm, there's no buildNpmPackage at that can emit a drv that's independant of architecture, is there? | 17:34:12 |
Emma [it/its] | * hm, there's no buildNpmPackage that can emit a drv that's independant of architecture, is there? | 17:35:12 |
dish [Fox/It/She] | afaik nix doesnt support that but i could be wrong
in any case, no iirc | 17:58:39 |
Tomodachi94 (they/them) | Yeah, ultimately the derivations have inputs that are platform-dependent like NodeJS and stdenv, which means different hashes for them | 19:23:55 |
dish [Fox/It/She] | also buildNpmPackage prunes to packages for current platform only | 20:40:02 |
dish [Fox/It/She] | and anything using node-gyp only gets built for host arch/os iirc | 20:40:27 |