!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

208 Members
59 Servers

Load older messages


SenderMessageTime
14 Mar 2026
@amadaluzia:4d2.orgamadaluzia joined the room.19:30:57
@amadaluzia:unredacted.orgamadaluzia -> 4d2.org changed their display name from amadaluzia[uorg] to amadaluzia -> 4d2.org.21:22:21
16 Mar 2026
@purepani:matrix.orgpurepani changed their display name from purepani to purepanid.05:55:09
@purepani:matrix.orgpurepani changed their display name from purepanid to purepani.05:55:50
19 Mar 2026
@rav:vergara.techRené changed their display name from Rene to René.13:43:25
23 Mar 2026
@azban:matrix.org@azban:matrix.org joined the room.22:17:24
@azban:matrix.org@azban:matrix.orgare node binaries supposed to be able to run without having node specified as a package in your environment?22:17:48
@pyrox:pyrox.devdish [Fox/It/She]yes22:23:50
24 Mar 2026
@azban:matrix.org@azban:matrix.organy idea why that wouldn't be the case with this config? https://github.com/NixOS/nixpkgs/blob/51600fecc3d3a57353c4f9cf72a22f1f9efc58ae/pkgs/by-name/ea/eas-cli/package.nix00:04:48
@azban:matrix.org@azban:matrix.orggetting: env: ‘node’: No such file or directory.. Do I need to wrap this to point to the write node?00:05:35
@azban:matrix.org@azban:matrix.org* getting: env: ‘node’: No such file or directory.. Do I need to wrap this to point to the right node?00:05:49
@azban:matrix.org@azban:matrix.orgthat seemed to do it00:11:34
@pyrox:pyrox.devdish [Fox/It/She]
In reply to @azban:matrix.org
any idea why that wouldn't be the case with this config? https://github.com/NixOS/nixpkgs/blob/51600fecc3d3a57353c4f9cf72a22f1f9efc58ae/pkgs/by-name/ea/eas-cli/package.nix
the file that gets symlinked as $out/bin/eas in postFixup doesn't have its shebang fixed with patchShebangs since patchShebangsHook runs in fixupPhase which is right before the code in postFixup runs
02:44:51
@pyrox:pyrox.devdish [Fox/It/She]and so it doesnt have a correct shebang that would point to a nodejs already02:45:08
@pyrox:pyrox.devdish [Fox/It/She]and having the proper shebang would register the correct nodejs as a dependency and then you wouldn't have to wrap it02:45:31
@pyrox:pyrox.devdish [Fox/It/She]so tl;dr the packaging is slightly wrong and then it doesnt work properly02:47:01
@pyrox:pyrox.devdish [Fox/It/She] hmm, why doesn't nodeJsInstallExecutables link to nodejs-slim instead of nodejs? Not installing corepack and npm with everything could save a few dozen mb everywhere, which I think would be a good tradeoff. 16:15:16
@pyrox:pyrox.devdish [Fox/It/She] * hmm, why doesn't nodeJsInstallExecutables link to nodejs-slim instead of nodejs? Not installing corepack and npm with everything could save a few dozen mb everywhere, which I think would be a good space saving 16:15:25
25 Mar 2026
@raboof:matrix.orgraboof joined the room.10:26:35
@raboof:matrix.orgraboof I'm surprised not more people have been hit by nodejs.src disappearing (https://github.com/NixOS/nixpkgs/pull/501357) 10:27:32
30 Mar 2026
@pyrox:pyrox.devdish [Fox/It/She] https://github.com/NixOS/nixpkgs/pull/496365 01:19:40
@pyrox:pyrox.devdish [Fox/It/She]it's done!01:19:51
@pyrox:pyrox.devdish [Fox/It/She]thanks to everyone who helped out with this01:20:02
1 Apr 2026
@azban:matrix.org@azban:matrix.org left the room.14:03:07
4 Apr 2026
@scrumplex:duckhub.ioScrumplex

I have been hitting my head against the current state of mirrors-support in nixpkgs around Node.

  • fetchPnpmDeps: supports NIX_NPM_REGISTRY as an impure env var
  • importNpmLock: no mirror support (needed in fetchurl)
  • fetchYarnDeps: no mirror support
  • fetchNpmDeps/prefetchNpmDeps: supports config.npmRegistryOverridesString (and npmRegistryOverrides by extension)

I was trying to get all of these under the same roof in https://github.com/NixOS/nixpkgs/pull/504349 using the fetchurl NIX_MIRRORS_<name> feature as a common baseline, but I am not sure if this is the best way forward.

For completion's sake we should probably also add support for registry.yarnpkg.org and npm.jsr.io, but I think this is all very convoluted sadly :/

11:50:54
@hsjobeki:matrix.orghsjobekiThe pnpmFetcher in nixpkgs annoyed me really hard the last couple of days12:00:42
@scrumplex:duckhub.ioScrumplex

fetchPnpmDeps is definitely not the best thing in the world but sadly the best we have at the moment.

Maybe I can interest you in my importPnpmLock.nix (also mirrord to GitHub). Though that is only a solution if you are okay with IFD

12:03:15
@scrumplex:duckhub.ioScrumplex *

fetchPnpmDeps is definitely not the best thing in the world but sadly the best we have at the moment.

Maybe I can interest you in my importPnpmLock.nix (also mirrored to GitHub). Though that is only a solution if you are okay with IFD

12:03:49
5 Dec 2022
@grahamc:nixos.org@grahamc:nixos.org changed the history visibility to "world_readable" from "shared".14:44:17
@hexa:lossy.networkhexaThanks14:44:25

Show newer messages


Back to Room ListRoom Version: 6