!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

211 Members
62 Servers

Load older messages


SenderMessageTime
26 Sep 2023
@emma:rory.gayEmma [it/its] https://www.npmjs.com/package/pg 10:14:50
@lily:lily.flowersLily FosterOh yeah I see the package10:15:00
@lily:lily.flowersLily Foster Does it attempt to import it then and just disable stuff if it isn't present? 10:15:28
@lily:lily.flowersLily Foster(At runtime)10:15:35
@emma:rory.gayEmma [it/its]no idea, its an optional runtime dependency of typeorm10:15:56
@emma:rory.gayEmma [it/its]if its not present and you try to use a postgres database, it just throws an exception stating you need to install the package10:16:53
@lily:lily.flowersLily FosterCan you link the package.json for what you are trying to package?10:18:15
@emma:rory.gayEmma [it/its] https://github.com/spacebarchat/server/blob/master/package.json 10:18:39
@emma:rory.gayEmma [it/its]also see flake.nix on the dev/nix branch (i added pg there for the time being)10:19:21
@lily:lily.flowersLily Foster Yeah it's not locked at all, so you'd have to manually locked a version or just download it yourself and stick it in node_modules after configure 10:32:29
@emma:rory.gayEmma [it/its]got the other maintainers to agree on adding it10:32:59
@lily:lily.flowersLily Foster It's sketch, but you should be able to buildNpmPackage for just pg and then copy ${pg}/lib/node_modules/pg to ./node_modules/pg in your derivation postConfigure 10:33:39
@lily:lily.flowersLily Foster
In reply to @emma:rory.gay
got the other maintainers to agree on adding it
Ah that works too
10:33:45
@lily:lily.flowersLily FosterProbably less sketchy anyway 😅10:34:10
@emma:rory.gayEmma [it/its]yeah10:35:20
@emma:rory.gayEmma [it/its]i was thinking of using a fetchTarball, honestly10:35:43
@lily:lily.flowersLily Foster
In reply to @emma:rory.gay
i was thinking of using a fetchTarball, honestly
Only concern is if it has other deps that would be unmet. Also it's not a case with this one, but if they had C code build steps you'd need them to run
10:38:13
@emma:rory.gayEmma [it/its]true10:40:08
@me:indeednotjames.comEmily changed their display name from Emily to emily.16:38:16
30 Sep 2023
@thiloho:matrix.orgthiloho joined the room.21:45:27
@thiloho:matrix.orgthiloho

Lily Foster: Are you aware of this error? I am getting it lately and cannon figure it out.

error: builder for '/nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv' failed with exit code 1;
       last 10 log lines:
       > node_modules/sade
       > node_modules/to-fast-properties
       > node_modules/p-try
       > node_modules/yallist
       > node_modules/stdin-discarder
       > node_modules/mdast-util-to-string
       > Error: unknown error
       >
       > Caused by:
       >     [55] Failed sending data to the peer
       For full logs, run 'nix log /nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv'.
error: 1 dependencies of derivation '/nix/store/rid5b0q43iqdf1anhjcf2r29w6cbi2xs-build-aurora-blog.drv' failed to build
21:45:46
@thiloho:matrix.orgthiloho I am also getting an [18] error when using nix-prefetch-deps for the package.lock.json file. 21:49:20
@lily:lily.flowersLily Foster
In reply to @thiloho:matrix.org

Lily Foster: Are you aware of this error? I am getting it lately and cannon figure it out.

error: builder for '/nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv' failed with exit code 1;
       last 10 log lines:
       > node_modules/sade
       > node_modules/to-fast-properties
       > node_modules/p-try
       > node_modules/yallist
       > node_modules/stdin-discarder
       > node_modules/mdast-util-to-string
       > Error: unknown error
       >
       > Caused by:
       >     [55] Failed sending data to the peer
       For full logs, run 'nix log /nix/store/0v4309m5kdpa2wvm9ix0v9hyf2x8cxwc-build-aurora-blog-npm-deps.drv'.
error: 1 dependencies of derivation '/nix/store/rid5b0q43iqdf1anhjcf2r29w6cbi2xs-build-aurora-blog.drv' failed to build
https://github.com/NixOS/nixpkgs/issues/257805 and https://github.com/NixOS/nixpkgs/issues/256873
21:52:52
@lily:lily.flowersLily FosterI haven't had a chance to dive into it though :(21:53:10
@thiloho:matrix.orgthiloho Lily Foster: Thank you, what I can tell is that the [18] error is fixed with NIX_BUILD_CORES=1, but that makes it really slow and the [55] error is still there without any solution. 22:03:36
@lily:lily.flowersLily Foster
In reply to @thiloho:matrix.org
Lily Foster: Thank you, what I can tell is that the [18] error is fixed with NIX_BUILD_CORES=1, but that makes it really slow and the [55] error is still there without any solution.
Does it always fail on the same dependency?
22:37:36
@peter-lustig:matrix.orgpeter-lustig joined the room.23:19:09
1 Oct 2023
@peter-lustig:matrix.orgpeter-lustigRedacted or Malformed Event11:50:55
@thiloho:matrix.orgthiloho
In reply to @lily:lily.flowers
Does it always fail on the same dependency?
I would tell you if this was the case, unfortunately it seems to not fail for me today (I already did a few successful builds with buildNpmPackage. As mentioned in the issue, it only happens occasionally so it is not that easy to debug.
11:58:54
@thiloho:matrix.orgthiloho
In reply to @lily:lily.flowers
Does it always fail on the same dependency?
* I would tell you if this was the case, unfortunately it seems to not fail for me today (I already did a few successful builds with buildNpmPackage). As mentioned in the issue, it only happens occasionally so it is not that easy to debug.
11:59:01

Show newer messages


Back to Room ListRoom Version: 6