!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

207 Members
58 Servers

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


SenderMessageTime
18 Nov 2023
@adis:blad.is@adis:blad.is* Faster than our nix parser :p12:08:01
@adis:blad.is@adis:blad.is

After some further refactoring:

{
  "cpuTime": 0.34559598565101624,
  "envs": {
    "bytes": 6537216,
    "elements": 330112,
    "number": 243520
  },
  "gc": {
    "heapSize": 402915328,
    "totalBytes": 63767152
  },
  "list": {
    "bytes": 985672,
    "concats": 9249,
    "elements": 123209
  },
  "nrAvoided": 358263,
  "nrFunctionCalls": 218872,
  "nrLookups": 82272,
  "nrOpUpdateValuesCopied": 1712032,
  "nrOpUpdates": 18283,
  "nrPrimOpCalls": 171800,
  "nrThunks": 461439,
  "sets": {
    "bytes": 33342256,
    "elements": 2027794,
    "number": 56097
  },
  "sizes": {
    "Attr": 16,
    "Bindings": 16,
    "Env": 16,
    "Value": 24
  },
  "symbols": {
    "bytes": 246484,
    "number": 24916
  },
  "values": {
    "bytes": 13269240,
    "number": 552885
  }
}
13:24:25
@adis:blad.is@adis:blad.isI mainly did it for improved UX, but that was a sweet bonus.13:24:56
@adis:blad.is@adis:blad.is It looks much more similar to fetchNpmDeps in usage now 13:29:54
19 Nov 2023
@zxgu:matrix.orgZXGU joined the room.11:02:39
20 Nov 2023
@whentze:matrix.orgWanja Hentze
In reply to @adis:blad.is
Cool :)
Hah, it doesn't work (at least not out of the box) but not for the reasons I was thinking of
16:08:31
@whentze:matrix.orgWanja Hentzewe have a .npmrc to do bearer auth against a private gitlab registry and we hacked support for that into our npmlock2nix fork16:09:10
@whentze:matrix.orgWanja Hentze after porting that over (in an even hackier manner), the next issue seems to be that we have packageRoot != src. That makes the npm-config-hook.sh unhappy. Looks like it's being run in src, not in packageRoot for some reason. 17:04:37
@whentze:matrix.orgWanja Hentze debugging a little bit, I found that $npmRoot is not set at this point: https://github.com/adisbladis/buildNodeModules/blob/master/hooks/npm-config-hook.sh#L6 17:09:42
@whentze:matrix.orgWanja Hentze am I still expected to pass sourceRoot to mkDerivation for this to work? 17:17:07
@whentze:matrix.orgWanja Hentze

so atm I have 2 questions adisbladis

  • if I cleaned up the code to parse .npmrc and pass auth headers based on it into fetchurl, would you be willing to take it?
  • is src != packageRoot supposed to work, or is it an unsupported configuration?
17:30:49
@whentze:matrix.orgWanja Hentze the src/sourceRoot/npmRoot/packageRoot situation is quite confusing to me. no combination I've tried seems to work. 17:46:59

Show newer messages


Back to Room ListRoom Version: 6