!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

179 Members
51 Servers

Load older messages


SenderMessageTime
29 Apr 2025
@dolcetriade:matrix.orgDolceTriadeI've also tried buildNpmPackage.override { nodejs = nodejs_23; }. And also tried to use a nixpkgs overlay to override nodejs = nodejs_2323:19:15
@dolcetriade:matrix.orgDolceTriadeRedacted or Malformed Event23:19:21
@dolcetriade:matrix.orgDolceTriadeActually I think the overlay method works. I just had to overlay buildPackages instead of pkgs... Now to figure out how to remove nodejs-source from the closure23:25:46
9 May 2025
@gdesforges:matrix.org@gdesforges:matrix.org left the room.17:07:02
14 May 2025
@winter:catgirl.cloudWinter i'm not sure what you mean by this -- (buildNpmPackage.override { nodejs = ...; }) { ... } should work just fine 00:22:34
@winter:catgirl.cloudWinter i'm not sure what you mean by the buildPackages part -- (buildNpmPackage.override { nodejs = ...; }) { ... } should work just fine 00:22:44
@dolcetriade:matrix.orgDolceTriade

Dunno...

  buildPackages' = buildPackages.extend (self: super: {nodejs = nodejs_23;});
  buildNpmPackage23 = buildNpmPackage.override {
    buildPackages = buildPackages';
  };

Ended up with something like this and this seemed to work. There are probably better ways to do this 🤷

22:37:02
@dolcetriade:matrix.orgDolceTriadeI think I traced this down to npm-hooks or something22:37:19
@dolcetriade:matrix.orgDolceTriadeWe don't properly passthrough nodejs down there22:37:30
17 May 2025
@terrorjack:matrix.orgterrorjack set a profile picture.08:53:40
21 May 2025
@ofalvai:matrix.orgofalvai joined the room.14:05:08
24 May 2025
@sfkvso:matrix.org@sfkvso:matrix.org left the room.18:59:50
2 Jun 2025
@deeok:matrix.orgmatrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms) joined the room.18:19:07
7 Jun 2025
@deeok:matrix.orgmatrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms) left the room.22:26:01
@deeok:matrix.orgmatrixrooms.info mod bot (does NOT read/send messages and/or invites; used for checking reported rooms) joined the room.23:42:43
9 Jun 2025
@sigmasquadron:matrix.orgSigmaSquadron joined the room.13:17:03
22 Jun 2025
@ss:someonex.netSomeoneSerge (Ever OOMed by Element) changed their display name from SomeoneSerge (UTC+U[-12,12]) to SomeoneSerge (Ever OOMed by Element).12:13:53
23 Jun 2025
@rosssmyth:matrix.orgrosssmyth For a package I maintain it requires a binary to be in a specific part of its project directory. Previously I copied it into the directory. I am trying to instead symlink it so that there isn't a duplicate binary around. But it seems that however npm decides what parts of the project directory are put in "node_modules/@project/...", the symlink is not preserved. I've tried passing npmFlags = [ "--preserve-symlinks" ]; but that did not seem to change anything. 22:31:48
@rosssmyth:matrix.orgrosssmythAnyone know what's going on?22:31:55
25 Jun 2025
@neobrain:matrix.org@neobrain:matrix.org joined the room.14:13:17
@neobrain:matrix.org@neobrain:matrix.org Hi! I'm trying to use fetchYarnDeps for a new derivation but yarn install --offline keeps complaining that it can't make a request in offline mode for packages that clearly should be in the offline store.
Is there anything non-obvious that one needs to do to make this work besides the yarn config set yarn-offline-mirror ${theFetchedYarnDeps} line?
14:47:48
@neobrain:matrix.org@neobrain:matrix.org * Hi! I'm trying to use fetchYarnDeps for a new derivation but yarn install --offline keeps complaining that it can't make a request in offline mode for packages that clearly are in the offline store.
Is there anything non-obvious that one needs to do to make this work besides the yarn config set yarn-offline-mirror ${theFetchedYarnDeps} line?
14:48:06
@neobrain:matrix.org@neobrain:matrix.org oh gosh, I think I finally got it. Seems like additionally calling fixup-yarn-lock yarn.lock is needed to make it work. Gosh I've been fighting with this all afternoon D: 15:05:45
@neobrain:matrix.org@neobrain:matrix.org * oh wow I think I finally got it. Seems like additionally calling fixup-yarn-lock yarn.lock is needed to make it work. Gosh I've been fighting with this all afternoon D: 15:07:17
27 Jun 2025
@redstone-menace:matrix.orgR̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝ changed their display name from Redstone to R̴̨͕͇͍̞̮̐̅͆̌̀̉̐͋̈́̃̀͒́̎̅̚̚̚͠͝Ĕ̵̡̛͖͖̟̙̫̱͈̘̞̭͍͍͑̌̄͑̓̋̓̀̈̏̈́͊̇͊͆̉͂̏̀̃̚͘͝͝ͅͅD̶̡̢͔̱̖̮͙͉̘̺͓͍̩̮͈͍͗̃̀̏͌͘͜ͅŚ̸̬̭̯̬͙͇͓̬̩̳̤͚͓̤̩̺͉͖̉͛̓̿̎͊̿̆́̐͂̇͌̄̇̓͘ͅͅT̴̞̫̘̝͇͔̟̪̪̦͂̔̎̀̎ͅŎ̷̡̬̹̪͈̭̣͈̭̭͉̦̖̝̘̪͖͔̥̦̘̻̳Ṋ̶̛̫͈̳̘͚̜̔̋͆̅̈́͊̑͊̉̌̈́̾͑̈́̚ͅË̸̡̨̨̛͇̜̖͔͖̻̟̗̠̙͓̘̗̥͉͇̜͑͆͊͑͑̀̓͒͜͝͝.00:57:26
@tumble1999:matrix.orgTumblewhat causes the npm-build-hook setup-hook to kill itself?18:22:36
@tumble1999:matrix.orgTumble
18:25:41
@tumble1999:matrix.orgTumble
bmod> [11ty] Writing /nix/store/n1ki5hpv6qjn517cgw10ssl86bfmm753-bmod-static/servers/index.html from ./_root/servers.html (liquid)
bmod> [11ty] Writing /nix/store/8yzd73k47j7fjsx5f0igxssp282ib0b6-bmod-static/balance/index.html from ./_root/balance.html (liquid)
bmod> [11ty] Writing /nix/store/n7kjqr06ybdqbaqjyihkn4dhzkprgaaf-bmod-static/moddedweapons/index.html from ./_root/moddedweapons.html (liquid)
bmod> [11ty] Writing /nix/store/n7kjqr06ybdqbaqjyihkn4dhzkprgaaf-bmod-static/balance/index.html from ./_root/balance.html (liquid)
bmod> [11ty] Writing /nix/store/n7kjqr06ybdqbaqjyihkn4dhzkprgaaf-bmod-static/asset-pack-test/index.html from ./_root/asset-pack-test.html (liquid)
bmod> /nix/store/21h54w4z8q9k7vjp11kl4xglbh8sfy5f-npm-build-hook/nix-support/setup-hook: line 3:   278 Killed                  npm run ${npmWorkspace+--workspace=$npmWorkspace} "$npmBuildScript" $npmBuildFlags "${npmBuildFlagsArray[@]}" $npmFlags "${npmFlagsArray[@]}"
bmod> ERROR: `npm build` failed
bmod> Here are a few things you can try, depending on the error:
bmod> 1. Make sure your build script (static:build) exists
bmod>   If there is none, set `dontNpmBuild = true`.
bmod> 2. If the error being thrown is something similar to "error:0308010C:digital envelope routines::unsupported", add `NODE_OPTIONS = "--openssl-legacy-provider"` to your derivation
bmod>   See https://github.com/webpack/webpack/issues/14532 for more information.
error: builder for '/nix/store/n2548zdlw6hjfgnkxq9is6x3n9kc2qmv-bmod.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/x1bxxf20ncsby1v5y0jadsjs1bvbdpy2-Caddyfile.drv' failed to build
error: 1 dependencies of derivation '/nix/store/bk0lhrw88ldg2vx04pbbfv9wvp5mnwx1-Caddyfile-formatted.drv' failed to build
error: 1 dependencies of derivation '/nix/store/53xm62vz6cq07wqkakf670vhz5s2rsjd-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gxndj1l21fa3pvq86b2ghlqh05km3c0b-nixos-system-blutsauger-25.11.20250624.30a61f0.drv' failed to build
Command '['nix', '--extra-experimental-features', 'nix-command flakes', 'build', '--print-out-paths', 'gitlab:balancemod/main-site-nixos#nixosConfigurations."blutsauger".config.system.build.toplevel', '--print-build-logs', '--show-trace', '--refresh', '--no-link']' returned non-zero exit status 1.

[tumble@blutsauger:~]$ 
18:26:14
6 Jul 2025
@cathal_mullan:matrix.orgCathal changed their display name from CJ to Cathal.17:17:32
8 Jul 2025
@neobrain:matrix.org@neobrain:matrix.org left the room.12:13:53

There are no newer messages yet.


Back to Room ListRoom Version: 6