!NhAsaYbbgmzHtXTPQJ:funklause.de

Nix NodeJS

177 Members
51 Servers

Load older messages


SenderMessageTime
9 Jan 2025
@otanaut:matrix.orgotanautNow i have to resolve the "Package ‘valgrind-3.23.0’ in ... is marked as broken, refusing to evaluate" error caused by the gst-vaapi package21:47:34
@otanaut:matrix.orgotanautAny tips appreciated :D21:55:50
@otanaut:matrix.orgotanaut @Winter i am now able to reproduce it, the current build was not using my remote builder 22:20:24
@otanaut:matrix.orgotanautthat would be the current error i have https://gist.github.com/omares/9faef2413bede493f395d2b39f135f2822:23:11
@winter:catgirl.cloudWinter
In reply to @otanaut:matrix.org
@Winter i am now able to reproduce it, the current build was not using my remote builder
...does your local machine have sandboxing disabled?
23:43:54
10 Jan 2025
@otanaut:matrix.orgotanaut
In reply to@winter:catgirl.cloud
...does your local machine have sandboxing disabled?
what would be the default state? i have not changed anything in that regards.
06:53:49
@otanaut:matrix.orgotanaut
In reply to@winter:catgirl.cloud
...does your local machine have sandboxing disabled?
just checked, it is enabled `cat /etc/nix/nix.conf | grep sandbox` -> `sandbox = true`
08:46:12
@otanaut:matrix.orgotanaut* just checked, it is enabled on the remote builder `cat /etc/nix/nix.conf | grep sandbox` -> `sandbox = true` and my local machine has it disabled08:46:50
@otanaut:matrix.orgotanautI have created a GitHub issue in the Nixpkgs repository, hoping to get support in resolving the problem: https://github.com/NixOS/nixpkgs/issues/372605.09:26:22
11 Jan 2025
@otanaut:matrix.orgotanautLook at me, I am the channel captain now16:37:08
12 Jan 2025
@rosssmyth:matrix.orgrosssmyth joined the room.05:40:27
@networkexception:nwex.denetworkException joined the room.19:51:33
@networkexception:nwex.denetworkException It looks like building nodejs_23 fails on stable 20:05:21
@emilazy:matrix.orgemilyoh blugh sorry20:11:48
@emilazy:matrix.orgemilyI think that is my fault-ish, see https://github.com/NixOS/nixpkgs/pull/37120120:11:59
@emilazy:matrix.orgemilyI forgot about the other build failure for the rest of that staging cycle20:12:18
@emilazy:matrix.orgemily had to backport a bunch of Node.js changes to fix a failure but the libuv, compiler versions, etc. differ across branches 20:13:06
@emilazy:matrix.orgemily hm, no, sorry, that was 22 and only on x86_64-darwin 20:13:06
@emilazy:matrix.orgemilywell, it still might be my fault :) but I remember 23 building20:13:41
@emilazy:matrix.orgemily I believe next cycle is merging all the other Node/libuv changes from unstable so at latest it should be fixed then but … ideally it'd get fixed before then too 20:13:41
13 Jan 2025
@rosssmyth:matrix.orgrosssmyth I am curious why with pnpm.fetchDeps I am required to provide a hash, but then with rustPlatform.importCargoLock I am not required to provide a hash for the fetched dependencies. 03:40:58
@winter:catgirl.cloudWinterbecause importCargoLock parses and evaluates the lock file in Nix code03:44:28
@winter:catgirl.cloudWinterfetchDeps does not03:44:32
@winter:catgirl.cloudWinterthere is an importCargoLock equivalent for npm, but not for pnpm.03:45:00
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeRedacted or Malformed Event07:12:14
@phaer:matrix.orgphaerIf anyone got time for a 1-character-PR: I think a check in linkNodeModulesHook is broken: https://github.com/NixOS/nixpkgs/pull/37263112:24:59
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe
{
  lib,
  stdenv,
  buildNpmPackage,
  fetchFromGitHub,
  nodejs,
  pnpm,
  cacert,
}:

buildNpmPackage rec {
  pname = "ni";
  version = "23.2.0";

  src = fetchFromGitHub {
    owner = "antfu-collective";
    repo = "ni";
    tag = "v${version}";
    hash = "sha256-f210qz53IgUXDon4bWIp+dynJ3aWi0za0puPjplzmqg=";
  };

  buildInputs = [
  ];
  nativeBuildInputs = [
    nodejs
  ];
  npmConfigHook = pnpm.configHook;
  npmDeps = pnpmDeps;
  pnpmDeps = pnpm.fetchDeps {
    inherit pname version src;
    hash = "sha256-+hnkj0uevURkRboTH8WbSt82pZTdWL4ii1PKr6NO0Cg=";
  };


  meta = {
    description = "Use the right package manager";
    homepage = "https://github.com/antfu-collective/ni";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xiaoxiangmoe ];
  };
}

This raise a error

       >  UNABLE_TO_GET_ISSUER_CERT_LOCALLY  request to https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz failed, reason: unable to get local issuer certificate
       >
       > FetchError: request to https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz failed, reason: unable to get local issuer certificate
       >     at ClientRequest.<anonymous> (/nix/store/hhprmwazmgvxqff5zpra2bw0cb12f4sl-pnpm-9.15.3/libexec/pnpm/dist/pnpm.cjs:66979:18)
       >     at ClientRequest.emit (node:events:518:28)
       >     at emitErrorEvent (node:_http_client:103:11)
       >     at TLSSocket.socketErrorListener (node:_http_client:506:5)
       >     at TLSSocket.emit (node:events:518:28)
       >     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)
       > Progress: resolved 685, reused 0, downloaded 0, added 0
       For full logs, run 'nix log /nix/store/i13ksyg9fqd8rlc3dywlarsvm5ix2cbn-ni-pnpm-deps.drv'.
14:33:34
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoe *
{
  lib,
  stdenv,
  buildNpmPackage,
  fetchFromGitHub,
  nodejs,
  pnpm,
  cacert,
}:

buildNpmPackage rec {
  pname = "ni";
  version = "23.2.0";

  src = fetchFromGitHub {
    owner = "antfu-collective";
    repo = "ni";
    tag = "v${version}";
    hash = "sha256-f210qz53IgUXDon4bWIp+dynJ3aWi0za0puPjplzmqg=";
  };

  buildInputs = [
  ];
  nativeBuildInputs = [
    nodejs
  ];
  npmConfigHook = pnpm.configHook;
  npmDeps = pnpmDeps;
  pnpmDeps = pnpm.fetchDeps {
    inherit pname version src;
    hash = "sha256-+hnkj0uevURkRboTH8WbSt82pZTdWL4ii1PKr6NO0Cg=";
  };


  meta = {
    description = "Use the right package manager";
    homepage = "https://github.com/antfu-collective/ni";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ xiaoxiangmoe ];
  };
}

This raise a error on macOS

       >  UNABLE_TO_GET_ISSUER_CERT_LOCALLY  request to https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz failed, reason: unable to get local issuer certificate
       >
       > FetchError: request to https://registry.npmjs.org/@eslint/core/-/core-0.9.0.tgz failed, reason: unable to get local issuer certificate
       >     at ClientRequest.<anonymous> (/nix/store/hhprmwazmgvxqff5zpra2bw0cb12f4sl-pnpm-9.15.3/libexec/pnpm/dist/pnpm.cjs:66979:18)
       >     at ClientRequest.emit (node:events:518:28)
       >     at emitErrorEvent (node:_http_client:103:11)
       >     at TLSSocket.socketErrorListener (node:_http_client:506:5)
       >     at TLSSocket.emit (node:events:518:28)
       >     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)
       > Progress: resolved 685, reused 0, downloaded 0, added 0
       For full logs, run 'nix log /nix/store/i13ksyg9fqd8rlc3dywlarsvm5ix2cbn-ni-pnpm-deps.drv'.
14:34:05
@xiaoxiangmoe:matrix.org🐰 xiaoxiangmoeIs there anyway to add cacert for pnpm.fetchDeps in macOS?14:41:32
@lily:lily.flowersLily Foster
In reply to @xiaoxiangmoe:matrix.org
Is there anyway to add cacert for pnpm.fetchDeps in macOS?
nativeBuildInputs in the pnpm.fetchDeps?
14:42:15

Show newer messages


Back to Room ListRoom Version: 6