Electron forge package build errors

trying to package an electron app.

I’m absolutely not familiar with npm, yarn, nodejs and such, so i’m not familiar with any errors those may throw and not familiar with how they are wrapped in nixpkgs.

everything seem straightforward from the manual, using hooks:

  yarnOfflineCache = fetchYarnDeps {
    yarnLock = finalAttrs.src + "/yarn.lock";
    hash = "sha256-ob3bkQkX7CijiOxIY4Sh4QAWNeJVxcT2zqBzSdcSFMs=";
  };

  yarnBuildScript = "package";

  nativeBuildInputs = [
    yarnConfigHook
    yarnBuildHook
    yarnInstallHook
    # Needed for executing package.json scripts
    nodejs
    python3  # added this to try to fix the error below that used to say things about python not being found
  ];

build fails with this mashed together error log. it seems that something tries to download something from electronjs.org and fails.

FetchError:requesttohttps://www.electronjs.org/headers/v37.6.0/node-v37.6.0-headers.tar.gz
failed,reason:getaddrinfoEAI_AGAINwww.electronjs.orgatClientRequest.<anonymous>(/build/source/node_modules/minipass-fetch/lib/index.js:130:14)
at ClientRequest.emit(node:events:508:28)
at emitErrorEvent(node:_http_client:108:11)
at TLSSocket.socketErrorListener(node:_http_client:575:5)atTLSSocket.emit(node:events:520:35)
at emitErrorNT(node:internal/streams/destroy:170:8)
at emitErrorCloseNT(node:internal/streams/destroy:129:3)
at process.processTicksAndRejections(node:internal/process/task_queues:90:21)
{code:'EAI_AGAIN',errno:'EAI_AGAIN',syscall:'getaddrinfo',hostname:'www.electronjs.org',type:'system'}