!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

194 Members
56 Servers

Load older messages


SenderMessageTime
13 Apr 2024
@tumble1999:matrix.orgTumble i think nix dev applys to devshells though falls back to app and then package
and nix run applyes to app and falls back to package
14:00:18
@lily:lily.flowersLily Foster
In reply to @c0ba1t:matrix.org
`nix run` stuff is the `apps` output iirc.
both apps and packages
14:00:45
@tumble1999:matrix.orgTumble nix build .packages
nix run .app .packages
nix develop .devShells .app .packages
nix init .templates
14:02:00
@tumble1999:matrix.orgTumble * nix build .packages
nix run .apps .packages
nix develop .devShells .apps .packages
nix init .templates
14:02:17
@alex3829:matrix.org@alex3829:matrix.org joined the room.16:04:46
15 Apr 2024
@aktaboot:tchncs.deaktaboot joined the room.10:45:29
16 Apr 2024
@pareto-optimal-dev:matrix.orgpareto-optimal-dev joined the room.16:46:31
@pareto-optimal-dev:matrix.orgpareto-optimal-dev

Why can't I require('@mongosh/autocomplete'); in nix install mongosh? I see that it is run like:

exec "/nix/store/4r6qr0bzmkdjjjaf7i4vbjmf92l9zpq0-nodejs-20.11.1/bin/node"  /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/bin/mongosh.js "$@" 

I see that /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/bin/mongosh.js has:

#!/nix/store/4r6qr0bzmkdjjjaf7i4vbjmf92l9zpq0-nodejs-20.11.1/bin/node
require('@mongosh/cli-repl/lib/run');

I guess I somehow need to add my require for mongosh/autocomplete to that mongosh.js file? I thought that because /nix/store/wzh6cmr5xnzg1ljsvfwpl2ph7iws5sxw-mongosh-2.2.2/lib/node_modules/mongosh/node_modules/@mongosh/autocomplete/ exists I could do require @mongosh/autocomplete.

16:51:18
17 Apr 2024
@alex3829:matrix.org@alex3829:matrix.org changed their display name from alex3829 to real_z22.04:36:36
@alex3829:matrix.org@alex3829:matrix.org changed their display name from real_z22 to real_z2.05:34:06
25 Apr 2024
@me:indeednotjames.com@me:indeednotjames.com left the room.03:36:37
@c0ba1t:matrix.orgCobalt Hi, does someone know how get buildNpmPackage working with npm workspaces? It appears to not properly merge the node_modules from the workspace and the root, resulting in missing dependencies 16:00:26
@lily:lily.flowersLily Foster
In reply to @c0ba1t:matrix.org
Hi, does someone know how get buildNpmPackage working with npm workspaces? It appears to not properly merge the node_modules from the workspace and the root, resulting in missing dependencies
it does handle them (assuming they are npm workspaces and not the fake ones lerna and such mash together)
16:17:37
@lily:lily.flowersLily Fostercan you share derivation?16:17:41
@c0ba1t:matrix.orgCobalt
In reply to @lily:lily.flowers
can you share derivation?
https://git.tu-berlin.de/proveit/proveit.nix/-/blob/main/pkgs/proofbuddy.nix?ref_type=heads#L89
16:20:59
@c0ba1t:matrix.orgCobaltI can also share the package.json files but the source code is unfortunately not public16:21:18
@lily:lily.flowersLily Fosteryes, please share the package.json of the root workspace dir, of the workspace package, and the package-lock.json of the root workspace dir16:22:00
@lily:lily.flowersLily Foster(you can DM if you prefer)16:22:08
@lily:lily.flowersLily Foster(can't promise help though because i'm bedridden recovering from surgery rn. maybe poke me about it like monday or tuesday?)16:22:36
@lily:lily.flowersLily Foster
In reply to @c0ba1t:matrix.org
https://git.tu-berlin.de/proveit/proveit.nix/-/blob/main/pkgs/proofbuddy.nix?ref_type=heads#L89
(yeah i'm trying to look at derivation but i'm wayy too incoherent rn...)
16:23:17
@c0ba1t:matrix.orgCobalt
In reply to @lily:lily.flowers
(can't promise help though because i'm bedridden recovering from surgery rn. maybe poke me about it like monday or tuesday?)
Thank you for the offer, wishing you a restful recovery.
18:00:55
26 Apr 2024
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad (she/they).23:47:44
@qyriad:katesiria.orgQyriad changed their display name from Qyriad (she/they) to Qyriad.23:47:57
27 Apr 2024
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad .00:01:06
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to Qyriad.00:09:42
@c0ba1t:matrix.orgCobalt
In reply to @c0ba1t:matrix.org
Hi, does someone know how get buildNpmPackage working with npm workspaces? It appears to not properly merge the node_modules from the workspace and the root, resulting in missing dependencies
The problem appears to have been my installPhase, workspaces apparently have two node_modules directories and the one next to the package.json for the workspace also needs to be copied alongside the root node_modules.
13:38:04
@c0ba1t:matrix.orgCobalt
In reply to @c0ba1t:matrix.org
Hi, does someone know how get buildNpmPackage working with npm workspaces? It appears to not properly merge the node_modules from the workspace and the root, resulting in missing dependencies
*

The problem appears to have been my installPhase, workspaces apparently have two node_modules directories and the one next to the package.json for the workspace also needs to be copied alongside the root node_modules.

It still doesn't run well but that's due to a bug in the code and not the nix derivation ;)

13:39:11
@lily:lily.flowersLily Foster
In reply to @c0ba1t:matrix.org
The problem appears to have been my installPhase, workspaces apparently have two node_modules directories and the one next to the package.json for the workspace also needs to be copied alongside the root node_modules.
ohhhh yeah the default installPhase does do that part. i should have noticed that you'd overridden it
14:55:51
29 Apr 2024
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:29:41
@matejam:matrix.orgmatejam joined the room.20:47:28

Show newer messages


Back to Room ListRoom Version: 6