!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

209 Members
59 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
23 Dec 2023
@serowy:matrix.orgsero heho, im packaging a nodejs cli for nixpkgs currently. The package gets build but when running it, ill get spawn node ENOENT because the syscall is just spawn node without the correct nixpkgs path. Is there an elegant way to solve this? 14:30:54
@c0ba1t:matrix.orgCobalt
In reply to @serowy:matrix.org
heho, im packaging a nodejs cli for nixpkgs currently. The package gets build but when running it, ill get spawn node ENOENT because the syscall is just spawn node without the correct nixpkgs path. Is there an elegant way to solve this?
You could wrap it to provide the node bin as part of PATH
15:24:00
@raitobezarius:matrix.orgraitobezarius changed their display name from raitobezarius to raitobezarius (DECT 2128).22:22:37
24 Dec 2023
@sandro:supersandro.deSandro 🐧
In reply to @adis:blad.is
And faster isn't the only concern.
Bytes transferred matters.
We need to optimize for both. Otherwise we make the experience for you better and for everyone with faster internet connection much worse which sucks.
15:19:56
28 Dec 2023
@pkolloch:matrix.org@pkolloch:matrix.org joined the room.12:56:16
29 Dec 2023
@hexa:lossy.networkhexahow shitty is the v8 gc?18:02:30
@hexa:lossy.networkhexa
 matrix-appservice-irc[895]: <--- Last few GCs --->
 matrix-appservice-irc[895]: [895:0x3cae3c0] 102505230 ms: Mark-Compact (reduce) 1977.4 (2086.4) -> 1975.6 (2086.4) MB, 3626.86 / 0.00 ms  (average mu = 0.118, current mu = 0.012) allocation failure; GC in old space requested
 matrix-appservice-irc[895]: [895:0x3cae3c0] 102510465 ms: Mark-Compact (reduce) 1975.6 (2086.4) -> 1975.6 (2084.6) MB, 5234.60 / 0.00 ms  (average mu = 0.052, current mu = 0.000) allocation failure; GC in old space requested
 matrix-appservice-irc[895]: <--- JS stacktrace --->
 matrix-appservice-irc[895]: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 matrix-appservice-irc[895]:  1: 0xbd82d8 node::Abort() [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  2: 0xa9f27c  [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  3: 0xdf67b0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  4: 0xdf6b84 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  5: 0x1012437  [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  6: 0x10124bb  [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  7: 0x102827d v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  8: 0x1028d70 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]:  9: 0x1003e22 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 10: 0x1004f84 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 11: 0xfe4094 v8::internal::Factory::AllocateRaw(int, v8::internal::AllocationType, v8::internal::AllocationAlignment) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 12: 0xfd42fc v8::internal::FactoryBase<v8::internal::Factory>::NewFixedArrayWithMap(v8::internal::Handle<v8::internal::Map>, int, v8::internal::AllocationType) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 13: 0x12f5e1d v8::internal::OrderedHashTable<v8::internal::OrderedHashMap, 2>::Allocate(v8::internal::Isolate*, int, v8::internal::AllocationType) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 14: 0x12f5ec0 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap, 2>::Rehash(v8::internal::Isolate*, v8::internal::Handle<v8::internal::OrderedHashMap>, int) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 15: 0x141d3b2 v8::internal::Runtime_MapGrow(int, unsigned long*, v8::internal::Isolate*) [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 matrix-appservice-irc[895]: 16: 0x1847ef6  [/nix/store/dp9wv3bsiz89fmysx2inq9rbn4jidgbp-nodejs-slim-20.10.0/bin/node]
 systemd[1]: matrix-appservice-irc.service: Main process exited, code=dumped, status=6/ABRT
 systemd[1]: matrix-appservice-irc.service: Failed with result 'core-dump'.
18:02:37
@hexa:lossy.networkhexathe machine had 4G in use, 4G cached/buffered18:03:54
@dominic_:matrix.org@dominic_:matrix.org joined the room.19:15:55
@dominic_:matrix.org@dominic_:matrix.orgHi, ich versuche meine Netxjs App nach mit nix zu bauen.19:29:57
@dominic_:matrix.org@dominic_:matrix.org
        nodejs = nodejs_20;
        appBuild = buildNpmPackage {
          src = ./.;
          npmBuild = "npm run build";
          npmPackFlags = [ "--ignore-scripts" ];
          pname = "parkfuchs";
          version = "1.6.5";
          npmDepsHash = "sha256-L4440lAbgc0U06KlzIqcnyTc5lnrH678apbraK+6mQ8=";
        };``` 
19:30:09
@dominic_:matrix.org@dominic_:matrix.orger baut die binary aber im result/bin order fehlt der next/static ordner19:30:40

Show newer messages


Back to Room ListRoom Version: 6