!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

189 Members
56 Servers

Load older messages


SenderMessageTime
30 Nov 2025
@tomodachi94:matrix.orgTomodachi94 (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:matrix.orgTomodachi94 (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:matrix.orgTomodachi94 (they/them)I responded there, suggesting you configure a proxy05:02:45
@tomodachi94:matrix.orgTomodachi94 (they/them)Adding a line to /etc/hosts might actually work better and require less configuration05:08:25
@tomodachi94:matrix.orgTomodachi94 (they/them) * Adding a line to /etc/hosts might actually work better and require less configuration nope, this is wrong 05:35:10
@rav:vergara.techRene 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
@pyrox:pyrox.devdish [Fox/It/She]angular may be trying to use the network idk16:05:07
@rav:vergara.techRene 🤔 17:38:19
@rav:vergara.techRene tried nix build --impure, same result 17:51:33
1 Dec 2025
@tomodachi94:matrix.orgTomodachi94 (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.de19:53:13
@emma:rory.gayEmma [it/its]hm, any clue on npm trying to download non cached packages?22:46:45
@emma:rory.gayEmma [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:rory.gayEmma [it/its]its just a standard buildNpmPackage so... i dont get it lol22:47:24
@c0ba1t:matrix.orgCobalt Is the lockfile consistent/complete? 23:01:16
@emma:rory.gayEmma [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:rory.gayEmma [it/its] it should be, doing an npm i --save in the dir doesnt break it 23:01:41
@emma:rory.gayEmma [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:rory.gayEmma [it/its]tl;dr a package override23:02:06
@emma:rory.gayEmma [it/its] using a patches= to replace the lockfile with a cleanly regenerated one amde no change 23:06:47
@emma:rory.gayEmma [it/its] * using a patches= to replace the lockfile with a cleanly regenerated one made no change 23:07:02
@emma:rory.gayEmma [it/its] ( Cobalt here's your answer ^) 23:10:48
@c0ba1t:matrix.orgCobalt Sorry to hear that. Thank you for trying though. I haven't encountered errors with overrides yet unfortunately 23:24:56
@emma:rory.gayEmma [it/its]removing the override and patching the sr made it work23:30:00
@emma:rory.gayEmma [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:rory.gayEmma [it/its]hm, there's no buildNpmPackage at that can emit a drv that's independant of architecture, is there?17:34:12
@emma:rory.gayEmma [it/its]* hm, there's no buildNpmPackage that can emit a drv that's independant of architecture, is there?17:35:12
@pyrox:pyrox.devdish [Fox/It/She]afaik nix doesnt support that but i could be wrong in any case, no iirc17:58:39
@tomodachi94:matrix.orgTomodachi94 (they/them)Yeah, ultimately the derivations have inputs that are platform-dependent like NodeJS and stdenv, which means different hashes for them19:23:55
@pyrox:pyrox.devdish [Fox/It/She]also buildNpmPackage prunes to packages for current platform only20:40:02
@pyrox:pyrox.devdish [Fox/It/She]and anything using node-gyp only gets built for host arch/os iirc20:40:27

There are no newer messages yet.


Back to Room ListRoom Version: 6